I am developing a asp.net web application. I am making use of Session variable to store user id and user name. Session variables tend to expire after some time, which we can configure in web.config. To avoid session variable from getting expired is it good if we re assign the session variable to itself every 5-10 minutes!?
in the client side if we have a settimeout or setinterval and make a ajax call to assign the session variable to itself every five minutes, will this prevent session expiring!?
I want to do this to make sure that no error arises because of session expiring.