Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: Log out programmatically PHP Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Rob68
Newbie
Newbie
Avatar

Joined: 19 February 2020
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 19 February 2020 at 7:34am | IP Logged Quote Rob68

I use webmail 8 in an Iframe on my own website.
Logging in programmatically goes right (thanks to the demo code).
But when I want to log out (using PHP), this doesn't work. That means when I log in to my website with another user, the last email account is still active.
I thought I could use the command: $isLoggedOut = \Aurora\System\Api::GetModuleDecorator('Core')->Logout();
But that doesn't seem to work. But the variable $isLoggedOut exits with 'true' so it looks like it works.
Has anyone an idea how to do this with PHP?
Thanks very much!
Back to Top View Rob68's Profile Search for other posts by Rob68
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 20 February 2020 at 12:12am | IP Logged Quote Igor

You're correct about using Logout method, but in addition to that, you need to delete AuthToken cookie.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Rob68
Newbie
Newbie
Avatar

Joined: 19 February 2020
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 26 February 2020 at 1:39am | IP Logged Quote Rob68

Thank you very much, Igor.
I will try that.

kind regards,
Rob
Back to Top View Rob68's Profile Search for other posts by Rob68
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide