Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #96 from redaxo/sessalive
Browse files Browse the repository at this point in the history
(Einfache) Lösung für Session Timeout Prob finden
  • Loading branch information
dergel committed Nov 20, 2013
2 parents a3f48b4 + a40f0e6 commit a14f16d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions redaxo/include/layout/bottom.php
Expand Up @@ -25,5 +25,18 @@
<div id="rex-redaxo-link"><p><a href="./" title="Wohin verlinke ich?">Wohin verlinke ich?</a></p></div>

</div><!-- END #rex-website -->
<!-- keep session alive -->
<script type="text/javascript">
if (!jQuery(document.body).is('#rex-page-login')) {
var keepAliveInterval = setInterval(function(){
jQuery.ajax('index.php?page=credits', {
cache: false,
});
}, 5 * 60 * 1000 /*extended every 5 minutes*/ );
setTimeout(function() {
clearInterval(keepAliveInterval);
}, 6 * 60 * 60 * 1000 /*max. for 6 hours after last request*/);
}
</script>
</body>
</html>

0 comments on commit a14f16d

Please sign in to comment.