Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | var SessionTimeout = function () { |
| 2 | |||
| 3 | var handlesessionTimeout = function () { |
||
| 4 | $.sessionTimeout({ |
||
| 5 | title: 'Session Timeout Notification', |
||
| 6 | message: 'Your session is about to expire.', |
||
| 7 | keepAliveUrl: '../demo/timeout-keep-alive.php', |
||
| 8 | redirUrl: 'page_user_lock_1.html', |
||
| 9 | logoutUrl: 'page_user_login_1.html', |
||
| 10 | warnAfter: 5000, //warn after 5 seconds |
||
| 11 | redirAfter: 10000, //redirect after 10 secons, |
||
| 12 | countdownMessage: 'Redirecting in {timer} seconds.', |
||
| 13 | countdownBar: true |
||
| 14 | }); |
||
| 15 | } |
||
| 16 | |||
| 17 | return { |
||
| 18 | //main function to initiate the module |
||
| 19 | init: function () { |
||
| 20 | handlesessionTimeout(); |
||
| 21 | } |
||
| 22 | }; |
||
| 23 | |||
| 24 | }(); |
||
| 25 | |||
| 26 | jQuery(document).ready(function() { |
||
| 27 | SessionTimeout.init(); |
||
| 28 | }); |