Extending Session Timing
-
Hi, I just want to know how to extend/modify the session timing for an particular page in asp 2.0. Thanks Jith
-
Hi, I just want to know how to extend/modify the session timing for an particular page in asp 2.0. Thanks Jith
The session.timeout limit is an application-wide setting, as far as I am aware you can't set it on a page-by-page level basis. However, if you want to make sure the session doesn't excpire while on a particular page, you can use a workaround/trick of loading a Javascript function on page load that includes a SetInterval call to keep requesting a dummy page every few seconds before teh session is due to expire: function Reconnect(){ var img = new Image(1,1); img.src = 'reconnect.aspx'; } window.setInterval('Reconnect()',1170000); reconnect.aspx is just a blank aspx page; the interval 1170000 ms is 30 seconds short of the default session timeout time of 20 minutes. Fred
-
The session.timeout limit is an application-wide setting, as far as I am aware you can't set it on a page-by-page level basis. However, if you want to make sure the session doesn't excpire while on a particular page, you can use a workaround/trick of loading a Javascript function on page load that includes a SetInterval call to keep requesting a dummy page every few seconds before teh session is due to expire: function Reconnect(){ var img = new Image(1,1); img.src = 'reconnect.aspx'; } window.setInterval('Reconnect()',1170000); reconnect.aspx is just a blank aspx page; the interval 1170000 ms is 30 seconds short of the default session timeout time of 20 minutes. Fred
Hi Fred, Thanks for your solution. Thanks Jith