Author |
|
iSofia Newbie
Joined: 24 May 2014 Location: Singapore
Online Status: Offline Posts: 35
|
Posted: 05 June 2014 at 6:18am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 05 June 2014 at 6:42am | IP Logged
|
|
|
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 |
|
|
iSofia Newbie
Joined: 24 May 2014 Location: Singapore
Online Status: Offline Posts: 35
|
Posted: 05 June 2014 at 6:58am | IP Logged
|
|
|
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 |
|
|