| Author: Ritesh N. Jain 04 Sep 2008 | Member Level: Gold | Rating: Points: 2 |
Wondering why dont you check the post created by your self before posting new one with same query?
http://www.dotnetspider.com/forum/169094-sessions.aspx
|
| Author: vishal 04 Sep 2008 | Member Level: Gold | Rating: Points: 2 |
you can do it by programatically or by setting it in web.config.
|
| Author: G.Hemadribabu 05 Sep 2008 | Member Level: Gold | Rating: Points: 6 |
You can do it programmatically like this
Add a dropdown box there you can 10,20,30,40 etc., ate what time you want to expire your login then based on the user selection you can set the session time out.
otherwise you can get it from a textbox and then you can set the session timeout
Session.Timeout = 10 (for ten minutes) Session.Timeout = 20 ( for 20 minutes)
otherwise
session.timeout=textbox1.text
or
session.timeout=Drodown1.selectedvalue
Hope u might have cleared ur doubt
thank you hemadribabu
|
| Author: Appukuttan 05 Sep 2008 | Member Level: Diamond | Rating: Points: 3 |
Hello..
You can do it programmatically
Like session.Timeout=10;
|
| Author: Geetha 05 Sep 2008 | Member Level: Gold | Rating: Points: 3 |
HI
store the username in session and set the session timeout as 10 minutes in your web.config. <sessionState timeout="10" />
Regards, Geetha.
|