diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-08 20:22:34 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-10 12:04:38 +0100 |
commit | c442f822fb9b961f7a92930e572edb52159391d3 (patch) | |
tree | b623ac96927243ee1d78ba751879cbe452ea1925 /program/include/rcube_session.php | |
parent | fb53c809a632a0f4122f0ef76cb8958a4ed7f6e1 (diff) |
Simplify keep-alive action. Now the interval is based on session_lifetime,
which means it's executed only if needed for session keeping (reset interval on every action).
Temporarily remove check-recent request, it will be replaced by new global system refresh request in future.
Use keep_alive setting as auto-refresh request interval (allow no-refresh mode)
Diffstat (limited to 'program/include/rcube_session.php')
-rw-r--r-- | program/include/rcube_session.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php index 6192466cd..c71efa2aa 100644 --- a/program/include/rcube_session.php +++ b/program/include/rcube_session.php @@ -43,7 +43,6 @@ class rcube_session private $secret = ''; private $ip_check = false; private $logging = false; - private $keep_alive = 0; private $memcache; /** @@ -525,24 +524,6 @@ class rcube_session $this->now = $now - ($now % ($this->lifetime / 2)); } - /** - * Setter for keep_alive interval - */ - public function set_keep_alive($keep_alive) - { - $this->keep_alive = $keep_alive; - - if ($this->lifetime < $keep_alive) - $this->set_lifetime($keep_alive + 30); - } - - /** - * Getter for keep_alive interval - */ - public function get_keep_alive() - { - return $this->keep_alive; - } /** * Getter for remote IP saved with this session @@ -552,6 +533,7 @@ class rcube_session return $this->ip; } + /** * Setter for cookie encryption secret */ |