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 4da600b585
commit c50e111e40
2 changed files with 5 additions and 0 deletions

@ -3,6 +3,10 @@
Version 1.5 ()
------------------------------------------------------------------------
* Use a unique session name for each blog instance, so that multiple
s9y installations can live on the same domain and having their
own sessions (kleinerChemiker, DrNI)
* Livejournal importer update by Anson now supports importing
comments, see http://board.s9y.org/viewtopic.php?f=11&t=15141

@ -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.