I am having an issue when my session expires. I have code at the start of ever page that will check if a session value is still valid. If it's not it will direct the user to the default.aspx page. Now for some reason when the page expires, you click the
button and nothing happens. This is on every page on my website. I did have customErrors set in my web config file and it would direct it to that page each time - which was my errors.aspx page. I commented out the custom errors and now the page just sits there
and no button clicks will process. What is the issue here? I just moved it to a new web hosting account and it didn't seem to do this on my old one.
The same code on my old hosting site works fine. What could it be on the new hosting site that makes the button clicks not function after the session times out?
Are you use shared hosting? If yes, most of shared hosting doesnt allow you to use session as there are other services on the server that may impact your site session. You can use ASP.NET Session state as an alternative, please refer to :
Another possibility is your website located in a crowd application pool that got recycling frequently. Just contact your hosting support for further assistance. Regards
tvb2727
Participant
925 Points
1273 Posts
Session Expired issue
Dec 02, 2012 05:19 PM|LINK
I am having an issue when my session expires. I have code at the start of ever page that will check if a session value is still valid. If it's not it will direct the user to the default.aspx page. Now for some reason when the page expires, you click the button and nothing happens. This is on every page on my website. I did have customErrors set in my web config file and it would direct it to that page each time - which was my errors.aspx page. I commented out the custom errors and now the page just sits there and no button clicks will process. What is the issue here? I just moved it to a new web hosting account and it didn't seem to do this on my old one.
tvb2727
Participant
925 Points
1273 Posts
Re: Session Expired issue
Dec 02, 2012 07:03 PM|LINK
The same code on my old hosting site works fine. What could it be on the new hosting site that makes the button clicks not function after the session times out?
dotnetnerd
Contributor
2432 Points
550 Posts
Re: Session Expired issue
Dec 03, 2012 03:10 AM|LINK
Hi tvb,
Are you use shared hosting? If yes, most of shared hosting doesnt allow you to use session as there are other services on the server that may impact your site session. You can use ASP.NET Session state as an alternative, please 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
Hope this help
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Topspy
Contributor
3785 Points
806 Posts
Re: Session Expired issue
Dec 07, 2012 08:02 AM|LINK
Another possibility is your website located in a crowd application pool that got recycling frequently. Just contact your hosting support for further assistance. Regards
Asp.net Hosting | Windows Hosting | SQL Server Hosting