Re: session_start() and a bad guy

From: Date: Tue, 18 Feb 2014 17:01:02 +0000
Subject: Re: session_start() and a bad guy
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-322925@lists.php.net to get a copy of this message
Vernon Nemitz wrote: > But what actually happens is that session_start() creates > a brand-new session-data-file using the ID that had been > supplied in the URL. Our bad guy now has his own private > session started! What is not a problem per se (unless your authorization check depends solely on the fact that a session exists, what would be very bad). The only problem with this is that it makes session fixation attacks easier. If you don't want to deal with session_regenerate_id() (or don't consider it safe enough), you can enable session.use_strict_mode. -- Christoph M. Becker

« previous php.general (#322925) next »