FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » using 'returnto' to redirect after a logout
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
using 'returnto' to redirect after a logout [message #26701] Thu, 04 August 2005 12:51 Go to next message
urbanhorizon is currently offline  urbanhorizon   United Kingdom
Messages: 8
Registered: August 2005
Karma: 0
Junior Member
I'm trying to edit the Logout button along the top of the forum so it logs you out, and then redirects away from the forum. I've tried using this as the logout link:
{ROOT}?t=login&{DEF: _rsid}&returnto={ROOT}?t=myredir&logout=1&SQ={GVAR: sq}

And created a myredir.php file that has a redirect header which is placed in theme/default. But the button still just logs you out and doesn't attempt to do any sort of redirection.
Any suggestions or other ways to try this? I'm using version 2.6.13 of the forum.

Thanks,
Mark @ Urban Horizon
Re: using 'returnto' to redirect after a logout [message #26706 is a reply to message #26701] Thu, 04 August 2005 17:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The returnto value cannot be passed via GET, it must be submitted via POST.

FUDforum Core Developer
Re: using 'returnto' to redirect after a logout [message #26766 is a reply to message #26701] Wed, 10 August 2005 13:59 Go to previous messageGo to next message
urbanhorizon is currently offline  urbanhorizon   United Kingdom
Messages: 8
Registered: August 2005
Karma: 0
Junior Member
i've tried putting a form around the logout link so that returnto is passed as a post value, but it still doesn't seem to work.
Re: using 'returnto' to redirect after a logout [message #26792 is a reply to message #26766] Fri, 12 August 2005 15:06 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Your best bet is to simply update the returnto value inside the session table for the user in question.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Login box
Next Topic: Place ad bar in the gap above last message of thread
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 23:59:15 GMT 2024

Total time taken to generate the page: 0.02504 seconds