You are here: Re: Remember Me option « PHP Programming Language « IT news, forums, messages
Re: Remember Me option

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация