RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Recycle Bin > Recycle Bin

For more information about the ads and why they're here, please see the FAQ
Closed Thread
  #1  
Old 08-13-2006, 11:32 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Logout Redirection

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-13-2006, 05:41 PM
Registered User
 
Join Date: Jul 2006
Posts: 49
Downloads: 0
Uploads: 0
Default Re: Logout Redirection

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-13-2006, 05:47 PM
Registered User
 
Join Date: Jul 2006
Posts: 49
Downloads: 0
Uploads: 0
Default Very easy

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();
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-14-2006, 06:41 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Logout Redirection

Aha! Thanks for your time Flash, it works beautifully. Hope this helps some others too.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-14-2006, 04:54 PM
Registered User
 
Join Date: Jul 2006
Posts: 49
Downloads: 0
Uploads: 0
Default Re: Logout Redirection

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 08-19-2006, 10:35 AM
Registered User
 
Join Date: Jun 2006
Posts: 84
Downloads: 0
Uploads: 0
Send a message via ICQ to xoqez Send a message via MSN to xoqez
Default Re: Logout Redirection

Post it under Roundcube Webmail Forum > Latest Release [ 0.1 Beta 2 ] > Requests

__________________
--<br />Venond; using roundcube since June 2006<br />www.venond.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-23-2006, 08:14 PM
Registered User
 
Join Date: Aug 2006
Posts: 6
Downloads: 0
Uploads: 0
Send a message via Yahoo to dracula
Default Re: Logout Redirection

done, posted it here: http://roundcubeforum.net/forum/inde...sg2168#msg2168
__________________
http://lcx.at
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 08:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community