Our intranet site has a large number of users out in the field and a handful of users here in the office. The web.config specifies a session timeout of 20 minutes, i.e.
I would like to increase the the timeout to several hours for the people who are located within our office complex. I am trying to do that by resetting the session timeout value when they log in. I look up information about the user from our database and then attempt the following.
Dim instance As System.Web.SessionState.HttpSessionState = HttpContext.Current.Session
If thisIsALocalUser Then
instance.Timeout = 240
instance.Timeout = 20
Question 1 is what happened when I did the "instance.Timeout = 240"?
Question 2 is how can I reset the timeout value for select individuals?