Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I Created Website and successfully hosted on Godaddy server. In Godaddy Asp.Net Setting default Session time available 20 min. How to overwritten this session time using webconfig file Asp.Net C#

Because our site only session time out 10 min when it will time out means when user ideal more than 10 min at the time only session will clear and move to login page but.

Godaddy Session concepts when person using our web site more 20 min then only it will automatically session clear and Log out move to login page but website active not for ideal.

i also chatted with Godaddy Client but not get solution they said use dedicated server.


So my Friends tell me how to overcome this problem using Programmming way.

Thanks.
Devendiran
Posted

You can set it in the web.config file: MSDN[^] - reduceing the timeout shouldn't be a problem (though increasing it may).
 
Share this answer
 
Basically, you cant use session on shared hosting. As an alternative, please just use ASP.NET session state or cookies. Please just refer to

- http://blogs.msdn.com/b/johan/archive/2006/11/20/sessionstate-performance.aspx
- http://forums.asp.net/t/1803857.aspx/1?Session+out+frequently+in+asp+net+
- http://msdn.microsoft.com/en-us/library/ms972429.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