Author Topic: Logout URL  (Read 6595 times)

Offline tealnet

  • Newbie
  • *
  • Posts: 4
Logout URL
« on: December 30, 2006, 08:43:11 PM »
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.

Offline bazzo

  • Newbie
  • *
  • Posts: 4
Re: Logout URL
« Reply #1 on: September 11, 2007, 07:24:03 AM »
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");
 }

Offline vanbroup

  • Newbie
  • *
  • Posts: 9
Re: Logout URL
« Reply #2 on: October 30, 2007, 06:31:49 AM »
Should be nice if this can be set in the config file.