Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all

 

I have set the timeout value of my web app to 2 minutes in to web.config file. I have also confirmed that the session timeout for the app. in IIS is also set to 2 minutes. I am only using the 2 minutes as a test and will up the value to about 20 minutes when I get it working properly.

 

So, I log in, and I do nothing for over two minutes. When I try to go to another page via the menu control, the application starts crashing and throws errors regarding missing data, tables, etc. Now I think that this is due to the fact that I previously changed the Content Expiry to 2 minutes and then to 4 minutes.

 

How can I get my app. to redirect the user to the long in page after a set time?

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
Have a look at the IHttpModule interface. You can intercept the page request at its earliest possible state. From there you check the Session for a particular variable. If the Session has timed out this variable will not exist and you can simply redirect them to your login page -- where you will set the variable into Session after a successful login. You can also do this type of thing in the global.asax file but the IHttpModule approach provides more options.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...