Posted by Balazs Wellisch on 01/21/06 05:19
"pek" <kimwlias@gmail.com> wrote in message
news:1137813017.516906.245940@g43g2000cwa.googlegroups.com...
>I user sessions..
> Does that have anything to do with this..?
> I mean, I can still use sessions and for the "Remember me" option I
> will use cookies..Right..?
> I also heard I need to make the cookie expire after a long will..
> I tried doing it but didn't know how it works.. :S
>
You use the session to track a user's actions through your site. By default
a session lasts as long as the browser is open, but this can be changed.
http://us2.php.net/manual/en/ref.session.php
You use the cookie to identify a user. But when they return the next time
they will probably start a new session.
Here's how to set the expiration of your cookie:
http://us2.php.net/manual/en/function.setcookie.php
Balazs
Navigation:
[Reply to this message]
|