Posted by Hendri Kurniawan on 01/03/07 21:54
I think they are talking about using cookie to store session id.
See PHP manual on session handling function.
PHP can do this automatically.
Hendri Kurniawan
Jeff wrote:
> Hey
>
> I'm using php version 5.2.0.
>
> On the web site I'm trying to create I want registered users to login to the
> web site. After the user has logged in, the web site will recognize the user
> even if he restarts his browser. From what I understand I need to use cookie
> instead of a session to solve this issue...
>
> But I've heard about the "cookie based sessions" phrase, and it's confusing
> me. Is this just a regular cookie or is this a cookie I must store the
> session id within? To me it sounds a bit strange to store the session id in
> the cookie because if the user should be able to restart his browser etc
> then it will (from what I understand) create different session ids??
>
> Any comments?
>
> Jeff
>
>
[Back to original message]
|