c# - will re-assigning session variable prevent session expiring? -


i developing asp.net web application. making use of session variable store user id , user name. session variables tend expire after time, can configure in web.config. avoid session variable getting expired if re assign session variable every 5-10 minutes!?

in client side if have settimeout or setinterval , make ajax call assign session variable every 5 minutes, will prevent session expiring!?

i want make sure no error arises because of session expiring.

you have 2 options extend default session expiry time or you’re suggesting reassigning values.

why don’t extend default session expiry time? use more memory on server unless have ton of users , lot of data stored in session objects (in case should consider getting better server app) should fine.

another thing i’d use kind of analytics software tell me how time on average users spending app. give info on to.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -