Re: Session Variable Security

From: Date: Thu, 30 Sep 2004 13:21:24 +0000
Subject: Re: Session Variable Security
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198257@lists.php.net to get a copy of this message
The first thing to do is to set your scripts to not allow session handling to be carried out through the URL if a person's browser won't accept cookies. It would be way too easy to change the ID. And also if the id numbers are sequential, you might also want to have a second, random identifier that is also a session variable. Thus you not only have the users id, but a random value that acts as a sort of password. This way there is more that a person attacking your script would have to do than simply changing the id number. Just some suggestions.

« previous php.general (#198257) next »