| Home » Categories » Multiple Categories |
My website session expires earlier than what I expect. What is wrong here? |
|
Article Number: 128 | Rating: 4.3/5 from 6 votes | Last Updated: Wed, Sep 24, 2025 at 12:14 AM
|
| If you register any of our shared hosting plans, your account will be activated on a shared server. A shared server is a server that is used and shared among clients. This means that your websites will be located on the same server with several websites that belong to our other clients. The existence of the other websites/services on the server may indirectly impact your site's session. Even though you have set the session to expire in, let's say, 60 minutes, your session can still terminate earlier than what you expect. This is why we do not recommend the use of session variables on a shared server. Instead, you are highly recommended to use Cookie. The way you program a cookie is very, very similar with session, except with cookie, you have to implement HttpCookie interface. Big online retail shop like Ebay never relies on session and they always use cookie to track the customer information. If you dislike the idea of using Cookie, you have another alternative, i.e. by using ASP.NET Session State. For more information about using ASP.NET Session State, you can 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 |
Attachments
There are no attachments for this article.
|
How can I deploy my ASP.NET project with WebDeploy facility via Visual Studio 2010 tool?
Viewed 6092 times since Wed, Jun 6, 2012
I am unable to renew my Let’s Encrypt SSL
Viewed 2893 times since Thu, Aug 23, 2018
How to Deploy and host .Net Core 2 and Angular 6 app
Viewed 13695 times since Tue, Oct 23, 2018
Monitoring Tools For Windows
Viewed 1456 times since Wed, Jul 13, 2022
Do you support ASP.NET 5?
Viewed 10457 times since Wed, Feb 17, 2016
My application pool stops working. What is wrong with my site?
Viewed 13642 times since Sun, Feb 15, 2015
How can I publish my website to your server?
Viewed 8100 times since Mon, Apr 30, 2012
I cannot login to my Domain Registration Portal. What should I do?
Viewed 3936 times since Mon, May 7, 2012
Common reasons why your application pool may unexpectedly recycle
Viewed 8937 times since Tue, May 15, 2012
Will my Crystal Report XI (Crystal Report 11) work on your server?
Viewed 3031 times since Tue, May 1, 2012
|
