Click here to Skip to main content
15,887,386 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I am working on website.
After successful login, i am seting some value to session variable
say:

C#
Session["Abc"]="myValue";


after login, there are some links on the main page.
If i open the new page from this link in new window, it works fine.
But if I close this new window and then try to open a link.., Bang..
Session Expires..

Please help??

[Framework: 3.5
Browser: IE8
IIS: 7]
Posted

Hi,

problem is solved!!
I have just set the Timeout in web.config, from following line of code under the tag System.Web:

XML
<sessionstate mode="StateServer" statenetworktimeout="30" regenerateexpiredsessionid="true" cookieless="false" timeout="30" />
 
Share this answer
 
v2
Comments
Vipin_Arora 14-Jun-12 4:08am    
I hv solved my problem myself... I post the answer...and it is downvoted..wow
thats sounds intersting...
Vipin_Arora 26-Jun-12 0:00am    
thanks for upvoted my answer
 
Share this answer
 
Comments
Vipin_Arora 18-Jun-12 23:30pm    
thanks for the link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900