summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-03-08 08:40:47 +0000
committeralecpl <alec@alec.pl>2011-03-08 08:40:47 +0000
commitc294eaa3f27ca5f38101eb4a1692111ac0ee82f8 (patch)
tree30d6e36f28536a15041d6b418377ff3a7daac5e4 /program
parentfb061aaecead8248d1a5cc43cc9593832d7bbdc0 (diff)
- Performance improvement: Remove redundant DELETE query (for old session deletion) on login
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_session.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php
index 0fc444256..1fa331753 100644
--- a/program/include/rcube_session.php
+++ b/program/include/rcube_session.php
@@ -205,15 +205,15 @@ class rcube_session
/**
* Generate and set new session id
+ *
+ * @param boolean $destroy If enabled the current session will be destroyed
*/
- public function regenerate_id()
+ public function regenerate_id($destroy=true)
{
- // delete old session record
- $this->destroy(session_id());
- $this->vars = false;
+ session_regenerate_id($destroy);
- session_regenerate_id(false);
- $this->key = session_id();
+ $this->vars = false;
+ $this->key = session_id();
return true;
}