My reasoning in using a cookie for user recognition, rather than relying on the
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
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.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php