|
|
Posted by Gordon Burditt on 10/26/05 22:29
>Ok, thanks for the explanation, this is quite what i had in mind as an
>alternative.
>Now i have only 1 question left: how do i handle the Logout-action.
>Which is just started with a link, not a form. Should i then check for
>a referer, if not set, send them to the home page?
Where do you want to send them after they log out? To the page
they came from when they logged *IN*? In that case, you take the
hidden form variable saved from when they logged in (saved in
$_SESSION, probably), and send them there. You can't use referer
here as they've likely been through several pages on your site while
logged in.
To the page where they clicked on LOGOUT? This doesn't seem very
logical to me. You could use referer for this, if it exists.
There's not a lot of incentive to fake it. If they want to go
elsewhere, they can click on HOME on the browser, or a bookmark,
or whatever.
Gordon L. Burditt
Navigation:
[Reply to this message]
|