Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: logging programatically Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alexbo
Newbie
Newbie


Joined: 22 November 2022
Location: Italy
Online Status: Offline
Posts: 5
Posted: 02 December 2022 at 5:40am | IP Logged Quote alexbo

Hi, my purpose is to embed webmail into a php based intranet website which use sessions.
Clicking a button to drive navigation on webmail user page and using "logging in programmatically" instructions I am able to push credentials and land on webmail main page.
My actual problem is how to exit from there and to go back to the caller page.
Is there a clue for this?
Thanks in advance.
Back to Top View alexbo's Profile Search for other posts by alexbo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 02 December 2022 at 11:25am | IP Logged Quote Igor

You can achieve that by setting "CustomLogoutUrl" value in data/settings/modules/CoreWebclient.config.json configuration file. That way, once user logs out from WebMail interface, they will be redirected to URL you specify.

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


Joined: 22 November 2022
Location: Italy
Online Status: Offline
Posts: 5
Posted: 04 December 2022 at 11:38pm | IP Logged Quote alexbo

Perfect; is it possible to pass it by session, or by post or by get? In a such case it could be possible to have a variable return address, instead of having a fixed one.
Back to Top View alexbo's Profile Search for other posts by alexbo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 04 December 2022 at 11:42pm | IP Logged Quote Igor

That's not supported out-of-box, but you can change that in the code - modules/CoreWebclient/Module.php file, line ~101:

Code:
'CustomLogoutUrl' => $this->getConfig('CustomLogoutUrl', ''),


--
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