![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Is there a way to redirect logging out to a html page e.g. to a custom you-are-now-logged-out.html instead of back to the default login page? Thanks. ![]() |
|
#2
|
|||
|
|||
|
I bet you could trap it in the index.php file based on the query string
?_task=mail&_action=logout then do a header('location: your_page.html'); die(); but you would have to do it after the actual logout process. I will poke around some, that does sound like a neat idea. |
|
#3
|
|||
|
|||
|
Just add this line:
header('location: http://google.com'); die(); change google to your page add it in this section of index.php // end session else if ($_action=='logout' && isset($_SESSION['user_id'])) { show_message('loggedout'); rcmail_kill_session(); header('location: http://google.com'); die(); } |
|
#4
|
|||
|
|||
|
Aha! Thanks for your time Flash, it works beautifully. Hope this helps some others too.
![]() |
|
#5
|
|||
|
|||
|
I could see how this may be desired by many people in different situations. It would be easy to make this part of the config. Just set a config array variable with the "logout url" in the config file - or leave the variable blank. Then in the code do a simple if test. If the value is there, execute the line. If the variable has no value, back to the login page. A very easy two line mod (one to each file - config and index) to make this a config option.
I would suggest that mod, but I don't know how to do that around here. There should be a place to submit proposed code in the forum. |
|
#6
|
|||
|
|||
|
Post it under Roundcube Webmail Forum > Latest Release [ 0.1 Beta 2 ] > Requests
__________________
--<br />Venond; using roundcube since June 2006<br />www.venond.com |
|
#7
|
|||
|
|||
|
done, posted it here: http://roundcubeforum.net/forum/inde...sg2168#msg2168
__________________
http://lcx.at |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |