Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Logout Progammatically Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RichardB
Newbie
Newbie


Joined: 18 July 2012
Online Status: Offline
Posts: 5
Posted: 26 July 2012 at 11:37am | IP Logged Quote RichardB

I've ran into a problem with Integration.UserLoginByEmail(). If the user doesn't manually log out of an existing email account, the UserLoginByEmail() method will no programmatically log the user into a new email account. Instead, the login is directed back to the "un-logged out" email account.

For example, let's say that UserLoginByEmail() is used to log the user into: support@domain.com. If the UserLoginByEmail() is used again to log the user into a different email account such as: sales@domain.com, the WebMail code redirects the user back to: support@domain.com. (If the user didn't manually click the logout button)

Where is an API for programmatically logging the user out?
Back to Top View RichardB's Profile Search for other posts by RichardB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 July 2012 at 6:44am | IP Logged Quote Igor

Did you try destroying the session? Should do the trick, I think.

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


Joined: 18 July 2012
Online Status: Offline
Posts: 5
Posted: 27 July 2012 at 9:25am | IP Logged Quote RichardB

That suggestion works. I was planning to do that as a fallback option, but it seemed to be a bit excessive.

Thanks for the reply
Back to Top View RichardB's Profile Search for other posts by RichardB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 30 July 2012 at 4:38am | IP Logged Quote Igor

I spoke to the developers today, and they agreed it's a good idea to have such method in WebMail API. There's a good chance it will be added in the near future.

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

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