aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/sessions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-04-29 13:35:42 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-04-29 13:35:42 +0000
commit22c8c4f9ffd33141cf0ee233fca5c79473bcce6d (patch)
treeef50f96c2f2e10463fcb2ee633b9f346e861182b /phpBB/includes/sessions.php
parent3ef0ecf9eda97ed187084680b87395947e28d78a (diff)
downloadforums-22c8c4f9ffd33141cf0ee233fca5c79473bcce6d.tar
forums-22c8c4f9ffd33141cf0ee233fca5c79473bcce6d.tar.gz
forums-22c8c4f9ffd33141cf0ee233fca5c79473bcce6d.tar.bz2
forums-22c8c4f9ffd33141cf0ee233fca5c79473bcce6d.tar.xz
forums-22c8c4f9ffd33141cf0ee233fca5c79473bcce6d.zip
Minor update to session_end
git-svn-id: file:///svn/phpbb/trunk@212 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/sessions.php')
-rw-r--r--phpBB/includes/sessions.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php
index f80245b44e..92cc7459e1 100644
--- a/phpBB/includes/sessions.php
+++ b/phpBB/includes/sessions.php
@@ -348,7 +348,7 @@ function session_end($session_id, $user_id)
{
if(DEBUG)
{
- error_die(SQL_QUERY, "Couldn't delete user session : session_eng()", __LINE__, __FILE__);
+ error_die(SQL_QUERY, "Couldn't delete user session : session_end", __LINE__, __FILE__);
}
else
{
@@ -364,12 +364,19 @@ function session_end($session_id, $user_id)
$result = $db->sql_query($sql, $db);
if (!$result)
{
- die("Couldn't reset autologin info : session_end<br/>". __LINE__ ."<br/>". __FILE__);
+ if(DEBUG)
+ {
+ error_die(SQL_QUERY, "Couldn't reset user autologin key : session_end", __LINE__, __FILE__);
+ }
+ else
+ {
+ error_die(SESSION_CREATE);
+ }
}
+ $cookiedata['autologinid'] = "";
}
$cookiedata['sessionend'] = $current_time;
- $cookiedata['autologinid'] = "";
$serialised_cookiedata = serialize($cookiedata);
setcookie($cookiename, $serialised_cookiedata, $cookielife, $cookiepath, $cookiedomain, $cookiesecure);