Re: Re: PHP authenticating and session management
| From: | Arash Dejkam | Date: | Fri, 22 Jun 2001 11:17:07 +0000 |
| Subject: | Re: Re: PHP authenticating and session management | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54863@lists.php.net to get a copy of this message | ||
Hi,
Thank you very much, you gave me the lines I was looking for in the 7-8
tutorials I read in last 48 hour to find and I didn't :)
Dejkam
http://www.dejkam.f2s.com
""Stephen Yau"" <stepheny@the-Vectors.com> wrote in message
news:20010622092833.13423.qmail@202.64.252.156...
> Hi,
>
> You can use $HTTP_SESSION_VARS["username"] to make sure that this
variable
> is from the user session, not from the cookie.
>
> When you do a session_register("username");, the $username is store in
the
> server side, not on the client. The client side only have a Session ID
store
> in the cookie. Each time when a client side request a php page, PHP will
see
> if a specific Session ID has been sent with the request. If this is the
> case, the prior saved environment is recreated.
>
> -Stephen Yau
>
> Arash Dejkam writes:
>
> > Hi,
> >
> > I want to use PHP session manager but I have some problems,
> >
> > I want the session start in a login page so I do this for example:
> >
> > after authenticating...
> > session_start();
> > session_register("username");
...