move cookiename to a local variable, comment debuglog calls

This commit is contained in:
<bdauvergne@entrouvert.com> 1207838151 +0200 0001-01-01 00:00:00 +00:00
parent 791096b949
commit c75fd57449
1 changed files with 1 additions and 3 deletions

View File

@ -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) {