Re: Using Cookies Securely

From: Date: Sat, 31 May 2003 12:56:32 +0000
Subject: Re: Using Cookies Securely
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149647@lists.php.net to get a copy of this message
On Fri, May 30, 2003 at 11:01:26PM -0700, Evan Nemerson wrote: > Send a session ID to the user in a cookie, then lookup that ID in a database > on the server. It's extremely difficult to guess random session ID's (don't > just increment them!), and if you have a session timeout, you're pretty much > set. That's true, and it is what most people do, but if you think about it the session ID is then functionally equivalent to a crypt'd password for the duration of your session; that is, either one allows you access to the site. So if you were worried about folks sniffing an encrypted password and using it to log in, you should be equally worried about folks sniffing a session ID and using *it* to log in. Dustin -- Dustin Mitchell dustin@ywlcs.org/djmitche@alumni.uchicago.edu http://people.cs.uchicago.edu/~dustin/

« previous php.general (#149647) next »