c# - Prevent expiration of individual sessions based on custom conditions? -
a website working on data centric. reports take more hour complete. whenever user submits request report, new thread created generates report. user redirected page says report in progress, , please refresh download report. if user again refreshes page , report still in progress, same message shown; otherwise download link provided.
all report/user relations saved in application variable. works fine, except when user inactive more 20 min (while report being processed), , user logged out; if user logs in again, report can still downloaded.
i not want increase session expiration time, need stop expiration if user has going in background, report being processed.
in session_end able retrieve the userid
, match in application["work"]
see user has pending work or not.
however, clueless how can defer session end in above case?
edit: every 1 has suggested workaround 'maintaining contact' 'using query string'. 'maintaining contact' looked promising me fails in following scenarios: a. when browser closed/computed goes in standby mode during lunch, etc. b. when user goes non-asp.net section (it's legacy site).
isn't possible cancel session_end
event itself?
maintain contact server avoid session timeout.
create empty web service
, run in server
call web service site jquery
interval of seconds enough keep session alive
may solution you..
try link full details : prevent session timeout in asp.net
Comments
Post a Comment