From c73efcc7bb6e0980ecd6505970894c57162940ea Mon Sep 17 00:00:00 2001 From: thomascube Date: Sat, 7 Apr 2012 18:25:21 +0000 Subject: Reset IP stored in session when destroying session data (#1488056) --- program/include/rcube_session.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php index 5ec9f337f..e6e636e18 100644 --- a/program/include/rcube_session.php +++ b/program/include/rcube_session.php @@ -5,7 +5,7 @@ | program/include/rcube_session.php | | | | This file is part of the Roundcube Webmail client | - | Copyright (C) 2005-2011, The Roundcube Dev Team | + | Copyright (C) 2005-2012, The Roundcube Dev Team | | Copyright (C) 2011, Kolab Systems AG | | | | Licensed under the GNU General Public License version 3 or | @@ -383,6 +383,7 @@ class rcube_session public function kill() { $this->vars = false; + $this->ip = $_SERVER['REMOTE_ADDR']; // update IP (might have changed) $this->destroy(session_id()); rcmail::setcookie($this->cookiename, '-del-', time() - 60); } -- cgit v1.2.3