requested89
IS-IT--Management
Apologies for asking what is a fairly simple question but I couldn't find the answer anywhere.
I have an area of my website where people have to login and can then write text etc. If the person is writing for 30 minutes and then click submit, the session has timed out and all their work is lost. I want to prevent this.
I have 4 questions:
1) I create a session which dictates whether or not the user is logged in. Am I correct in assuming that this session variable is deleted when Session_End is fired i.e. when there has been no activity for 20 mins for example?
2) Is it possible to alert the user that they will be logged out in X amount of time. I'm guessing not without the use of a JavaScript timer or similar but thought I'd ask just in case.
3) Where exactly is the best place to set the session.timeout value. The session.timeout value is not relevant in any of the site except the restricted area so should I set it manually on each of the restricted pages or just set it in the Web.Config file?
4) What is the syntax for setting it in the Web.Config file?
Thanks in advance,
Chris
I have an area of my website where people have to login and can then write text etc. If the person is writing for 30 minutes and then click submit, the session has timed out and all their work is lost. I want to prevent this.
I have 4 questions:
1) I create a session which dictates whether or not the user is logged in. Am I correct in assuming that this session variable is deleted when Session_End is fired i.e. when there has been no activity for 20 mins for example?
2) Is it possible to alert the user that they will be logged out in X amount of time. I'm guessing not without the use of a JavaScript timer or similar but thought I'd ask just in case.
3) Where exactly is the best place to set the session.timeout value. The session.timeout value is not relevant in any of the site except the restricted area so should I set it manually on each of the restricted pages or just set it in the Web.Config file?
4) What is the syntax for setting it in the Web.Config file?
Thanks in advance,
Chris