Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Log out or destroy session? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
iSofia
Newbie
Newbie
Avatar

Joined: 24 May 2014
Location: Singapore
Online Status: Offline
Posts: 35
Posted: 05 June 2014 at 6:18am | IP Logged Quote iSofia

Hello. Referring to this remote login script (Logging in through API), which uses the LoginToAccount API function to log in to an email account, is there a corresponding API function or method to log out?

I'm trying to write a remote script to change the email account password, but since there's no way of confirming if the current password is valid, I thought that the only other option would be to perform a successful login, and then log out.

Does anyone have any idea how to do this? Any help is appreciated.

Thank you.
Back to Top View iSofia's Profile Search for other posts by iSofia
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 June 2014 at 6:42am | IP Logged Quote Igor

Yes, there is LogoutAccount method of integrator manager:

Code:
$oApiIntegratorManager->LogoutAccount();


Alternately, you can destroy user session by deleting p7auth cookie.

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

Joined: 24 May 2014
Location: Singapore
Online Status: Offline
Posts: 35
Posted: 05 June 2014 at 6:58am | IP Logged Quote iSofia

Hi Igor,
Thank you so much for the quick reply.

Code:
$oApiIntegratorManager->LogoutAccount();


I'll give it a try, and look into the p7auth cookie approach as well.
Back to Top View iSofia's Profile Search for other posts by iSofia
 

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