From c77b4182067ed9c99da9492d44d37b878fe53d6e Mon Sep 17 00:00:00 2001 From: PavelBegunkov <asml.Silence@gmail.com> Date: Thu, 27 Nov 2014 22:57:15 +0300 Subject: [PATCH] session fix --- ~dev_rating/media/js/profile.js | 3 +-- ~dev_rating/modules/account/classes/Kohana/User.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/~dev_rating/media/js/profile.js b/~dev_rating/media/js/profile.js index b33089e2a..c3c73783c 100644 --- a/~dev_rating/media/js/profile.js +++ b/~dev_rating/media/js/profile.js @@ -41,9 +41,8 @@ $(function() $.ajax({ type: "POST", url: URLdir + "handler/Session/closeSession", - success: function(data) {} + success: function(data) {window.location.replace(URLdir);} }); - window.location.replace(URLdir); }, time*1000); } diff --git a/~dev_rating/modules/account/classes/Kohana/User.php b/~dev_rating/modules/account/classes/Kohana/User.php index 8dc9b9d5f..d3ffb1063 100644 --- a/~dev_rating/modules/account/classes/Kohana/User.php +++ b/~dev_rating/modules/account/classes/Kohana/User.php @@ -8,7 +8,7 @@ class Kohana_User implements ArrayAccess { protected $_model; protected $_userInfo; - const SESSION_LIFETIME = 20; //seconds + const SESSION_LIFETIME = 900; //seconds /** * Вовзращает экземпляр класса (singleton-паттерн) -- GitLab