1
0

adjust session name, thanks to DrNI and kleinerChemiker

This commit is contained in:
Garvin Hicking
2009-04-23 13:40:47 +00:00
parent ba0f211ab6
commit 9fbe9f7b7c
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ if (defined('S9Y_FRAMEWORK')) {
@define('S9Y_FRAMEWORK', true);
if (!headers_sent()) {
session_name('s9y_' . md5(dirname(__FILE__)));
session_start();
// Prevent session fixation by only allowing sessions that have been sent by the server.