Re: Cookies & sessions
| From: | Michael A. Peters | Date: | Sat, 23 Jan 2010 02:42:25 +0000 |
| Subject: | Re: Cookies & sessions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301371@lists.php.net to get a copy of this message | ||
clancy_1@cybec.com.au wrote:
My reasoning in using a cookie for user recognition, rather than relying on the session ID, was that with a cookie I could ensure that the connection effectively lasted for some specified period, whereas the session ID lifetime seems to be somewhat short and ill-defined.Shouldn't be. You can tell sessions to last as long or short as you want. As far as login goes, there are many ways to do it and the best way depends upon what you are doing.