Re: Cookies, Sessions and Login Proceess
| From: | Julio Nobrega Trabalhando | Date: | Mon, 12 Nov 2001 17:39:43 +0000 |
| Subject: | Re: Cookies, Sessions and Login Proceess | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74309@lists.php.net to get a copy of this message | ||
header(); function is fine. Another option is javascript which is
dependent on the client software.
But you get the picture about the login process. I just have to agree with
Chris, something name 'is_logged' is better than 'accessedbefore'.
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Joe Van Meer" <joe@coastaldestination.com> wrote in message
news:20011112173043.96575.qmail@pb1.pair.com...
> Thx Christopher for replying. Ok, let me see if I understand you
> correctly...
>
> The user enters username and password on index.php, this is posted to
> login.php. On login.php after I verify the user is who he/she says they
are
> I set a cookie called "accessedbefore" to "yes" and redirect them to the
> main page. Am I allowed to set a cookie and redirect them after
determining
> who the user is? How would I redirect them after setting the cookie?
Header
> function or is there a better way?
>
> Thx Joe :)
>
>