You are here: Re: Login system « PHP Programming Language « IT news, forums, messages
Re: Login system

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация