Home » Categories » Multiple Categories

My website session expires earlier than what I expect. What is wrong here?

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 Attachments
There are no attachments for this article.
Related Articles RSS Feed
Do I need a static IP?
Viewed 4464 times since Mon, May 7, 2012
How can I deploy my VS LightSwitch project on your server?
Viewed 3632 times since Tue, May 22, 2012
My website session times out earlier than expected. Why?
Viewed 4564 times since Tue, May 1, 2012
My .CSHTML site is not working. What did I do wrong here?
Viewed 3709 times since Thu, May 3, 2012
How can I publish my website to your server?
Viewed 7280 times since Mon, Apr 30, 2012
Will my Crystal Report X (Crystal Report 10) work on your server?
Viewed 2261 times since Tue, May 1, 2012
I cannot find any article on this Knowledge Base that can solve my issues. What should I do?
Viewed 3788 times since Mon, Apr 30, 2012
You informed me that my Crystal Report has been configured, why do I still receive an error message?
Viewed 2640 times since Tue, May 1, 2012
Common reasons why your application pool may unexpectedly recycle
Viewed 7867 times since Tue, May 15, 2012
I forgot my Help Desk Account password. What should I do?
Viewed 6689 times since Mon, May 7, 2012