| Author |  | 
      
        | alexbo Newbie
 
  
 
 Joined: 22 November 2022
 Location: Italy
 Online Status: Offline
 Posts: 5
 | 
          Hi, my purpose is to embed webmail into a php based intranet website which use sessions.
           | Posted: 02 December 2022 at 5:40am | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          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.
           | Posted: 02 December 2022 at 11:25am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | alexbo Newbie
 
  
 
 Joined: 22 November 2022
 Location: Italy
 Online Status: Offline
 Posts: 5
 | 
          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.
           | Posted: 04 December 2022 at 11:38pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          That's not supported out-of-box, but you can change that in the code - modules/CoreWebclient/Module.php file, line ~101:
           | Posted: 04 December 2022 at 11:42pm | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | 'CustomLogoutUrl' => $this->getConfig('CustomLogoutUrl', ''), |  |  |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |