Roundcube Community Forum

 

Logout URL

Started by tealnet, December 30, 2006, 08:43:11 PM

Previous topic - Next topic

tealnet

Could we have a line in the config file to specify an alternate URL to be directed to at logout? This would be helpful for us since we use an external login form and we'd like them to be redirected back to that.

bazzo

Hey!
You can add this in the index.php file 8)

Go to line 172, you will find the line "rcmail_kill_session();"

Add this line: header("Location: http://www.your-url.com");
Quote// end session
else if ($_action=='logout' && isset($_SESSION['user_id']))
 {
 show_message('loggedout');
 rcmail_kill_session();
 header("Location: http://www.your-url.com");
 }

vanbroup

Should be nice if this can be set in the config file.