Re: Login
| From: | Richard Heyes | Date: | Wed, 08 Oct 2008 20:29:04 +0000 |
| Subject: | Re: Login | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281609@lists.php.net to get a copy of this message | ||
> I would recommend using the include method. Redirects should always
>> be second choice, because they are just evil.
>
> In this case I would disagree. On successful login it's normal to redirect
> to a useful page rather than just display a page that says "congratulations,
> you're a real user". In the case of an unsuccessful login why would you need
> to include another file? Surely the logic that follows is part of the login
> script.
Agreed. Flow could be described as this:
Not logged in --> Login page --> Logged in
Redirects make sense IMO. IIRC the Yahoo guidelines say not to
redirect after a form POST, but unless you have a ka-jillion page
views a second (or, "a lot"), then I don't think it's a concern.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph