move cookiename to a local variable, comment debuglog calls
This commit is contained in:
parent
791096b949
commit
c75fd57449
|
@ -3,11 +3,10 @@ require_once('lassospkit_datadir.inc.php');
|
|||
require_once('lassospkit_debug.inc.php');
|
||||
|
||||
|
||||
$LassoSPKitSessionFile_cookiename = LassoSPKitConfig::get('cookiename');
|
||||
|
||||
class LassoSPKitSessionFile {
|
||||
function retrieve($session, $timeout) {
|
||||
global $LassoSPKitSessionFile_cookiename;
|
||||
$LassoSPKitSessionFile_cookiename = 'lassospkit_file_' . LassoSPKitConfig::get('cookiename');
|
||||
|
||||
$content = null;
|
||||
if (isset($_COOKIE[$LassoSPKitSessionFile_cookiename])) {
|
||||
|
@ -32,7 +31,6 @@ class LassoSPKitSessionFile {
|
|||
return $content;
|
||||
}
|
||||
function store($session, $content) {
|
||||
global $LassoSPKitSessionFile_cookiename;
|
||||
if ($session->id) {
|
||||
$ret = @file_put_contents(lassospkit_datadir() . "/cookie_session_" . $session->id, $content);
|
||||
if ($ret === FALSE) {
|
||||
|
|
Reference in New Issue