diff --git a/~dev_rating/media/js/profile.js b/~dev_rating/media/js/profile.js index b33089e2adfbea38599489e8172186f886b032c8..c3c73783c3d28d9180f687e64398106b680e8df6 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 8dc9b9d5fb670505172d6549363a6a0a98dd931c..d3ffb106315483fcf8cec7155a9a75b3ce89dc8f 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-паттерн)