[pLog-svn] r3324 - plog/trunk/class/net/http/session
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed May 3 17:32:23 GMT 2006
Author: jondaley
Date: 2006-05-03 17:32:21 +0000 (Wed, 03 May 2006)
New Revision: 3324
Modified:
plog/trunk/class/net/http/session/sessionmanager.class.php
Log:
never got around to checking this in from 1.0.3 - multiple installs on the same domain do bad things - settings are shared across LT installs, so you basically can't login to both at the same time.
Modified: plog/trunk/class/net/http/session/sessionmanager.class.php
===================================================================
--- plog/trunk/class/net/http/session/sessionmanager.class.php 2006-05-02 20:22:14 UTC (rev 3323)
+++ plog/trunk/class/net/http/session/sessionmanager.class.php 2006-05-03 17:32:21 UTC (rev 3324)
@@ -36,7 +36,14 @@
$sessionDomain = SessionManager::setSessionCookieDomain();
session_cache_limiter( "" );
- session_name( "plogsession" );
+ $serverVars = HttpVars::getServer();
+ // append scriptURL to distinguish between
+ // multiple installs on the same domain
+ // session_name is not well documented, but some people
+ // say it will fail with non-alphanumerics
+ $sessionName = "LT" . preg_replace("/[^a-zA-Z0-9]/", "", $serverVars['SCRIPT_FILENAME']);
+ session_name( $sessionName );
+
session_set_cookie_params(0, $sessionPath, $sessionDomain);
session_start();
More information about the pLog-svn
mailing list