[pLog-svn] r1686 - plog/branches/plog-1.0.1/class/net/http/session
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun Apr 3 10:38:38 GMT 2005
Author: ork
Date: 2005-04-03 10:38:37 +0000 (Sun, 03 Apr 2005)
New Revision: 1686
Modified:
plog/branches/plog-1.0.1/class/net/http/session/sessionmanager.class.php
Log:
no use of php_ini anymore, see http://forums.plogworld.net/viewtopic.php?t=2020
Modified: plog/branches/plog-1.0.1/class/net/http/session/sessionmanager.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/http/session/sessionmanager.class.php 2005-04-02 17:31:38 UTC (rev 1685)
+++ plog/branches/plog-1.0.1/class/net/http/session/sessionmanager.class.php 2005-04-03 10:38:37 UTC (rev 1686)
@@ -29,11 +29,12 @@
SessionManager::setSessionSavePath();
// this needs to be done before the session is started
- SessionManager::setSessionCookiePath();
- SessionManager::setSessionCookieDomain();
+ $sessionPath = SessionManager::setSessionCookiePath();
+ $sessionDomain = SessionManager::setSessionCookieDomain();
//session_cache_limiter( "public" );
session_name( "plog_session" );
+ session_set_cookie_params(0, $sessionPath, $sessionDomain);
session_start();
//
@@ -63,7 +64,7 @@
if( $path == "" || $path == "\\" )
$path = "/";
- ini_set( "session.cookie_path", $path );
+ return $path;
}
/**
@@ -82,7 +83,7 @@
// 'localhost' or internal domains for obvious security reasons...
// See comments in http://fi.php.net/manual/en/function.session-set-cookie-params.php
if( count(explode('.', $domain)) > 1 ) {
- ini_set( "session.cookie_domain", $domain );
+ return $domain;
}
}
More information about the pLog-svn
mailing list