after login the label lblw: will be changed as welcom "username"..
the home.aspx dosnt have masterfile..
bt all other pages have ..
n even the masterfile.aspx.cs 's page_load contain same data about Session["user"]..
its working well.. bt after few minutes the lblw(which contain "welcom + userid" after login) changed as "Welcome Guest" which is state when user is not logged in..
y its happening?
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 9:06 AM EDT
✓ Accepted answer0
sorry its
<sessionStatetimeout="10000"/>
and it Should be in
0
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 8:01 AM EDT
0
Add this in your Web.config
<session timeout="10000" />
0
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 22, 2009, 8:09 AM EDT
0
where to put (in which section) this line in web.config?
0
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 22, 2009, 9:12 AM EDT
Venkatesh Ellur30 reputationPosted Oct 23, 2009, 4:11 AM EDT
0
just to add up with what Kirtan have informed if the case is that you need the session to be timed out the time can be add in the web config file instead of '10000' that is mentioned by Kirtan.
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 9:06 AM EDT
<sessionState timeout="10000"/>
and it Should be in
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 8:01 AM EDT
<session timeout="10000" />
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 22, 2009, 8:09 AM EDT
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 22, 2009, 9:12 AM EDT
n i marked your answer
Venkatesh Ellur30 reputationPosted Oct 23, 2009, 4:11 AM EDT
eg: