Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I am developing web application in asp.net with c# in which
I am setting session on button_click.
after some time(hardly 20-30 second) I click any one of link.
my session is lost and I am not getting data related to that session on next page
session timeout is 20 in my web.config I have also increase timeout but still it creating problem.
[ it works fine on localhost but after uploading on server it creates problem ]

Please reply me it is very urgent.

thanks in advance.
Posted
Updated 8-Apr-11 0:55am
v2

1 solution

you can set session lifetime in the web config file of your web application

Please refer this link

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx[^]
 
Share this answer
 
v2

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