Last post Jun 08, 2009 02:54 PM by NicoJuice
Jun 04, 2009 04:24 PM|NicoJuice|LINK
I created a website and it's all working fine locally.
But i uploaded it to my host and my session gets "destroyed"? after 5-10 seconds.
How is this possible?
I tried 2 things:
- Changing my sessionstate in web.config
- Programmaticly add code to my masterpage to let the session live longer.
None of them seem to work.
Can someone help me?
.NET 3.5 Installation Problems
Session gets destroyed after 10 seconds
Jun 04, 2009 06:07 PM|RatheeshC|LINK
Try this in your web.config
Jun 04, 2009 07:01 PM|NicoJuice|LINK
I have tried this already :(
This is my sessionstate in web.config
Jun 04, 2009 07:11 PM|tamilcodes|LINK
your tcp/ip is set to localhost
Jun 04, 2009 07:20 PM|NicoJuice|LINK
Has this anything to do with my session timing out?
Jun 05, 2009 02:53 AMfirstname.lastname@example.org|LINK
Jun 05, 2009 03:07 AM|ajitsatpathy|LINK
There are also other reasons for session time out. Is there any xml or some other file in you application which you are modifying dynamically every time? After modifying file, session time out also occurs.
session ends after 30 minutes
Jun 05, 2009 06:51 AM|NicoJuice|LINK
No, i don't manipulate xml.
The only place where i use .xml is as sitemap source files, but those are static pages.
Jun 05, 2009 08:15 AM|XIII|LINK
could it be that you're writing a file into the /bin folder? This causes a process recycle. Changing something in the web.config as well.
Which IIS version are you on? Be sure to monitor that IIS doesn't recycle every now and then. Also make sure that you close all used resources (like reading a file or database connection or ...).
Jun 05, 2009 08:35 AM|sumitd|LINK
These are the possible reasons of Session loss..
Recylcling of Application Pool or restart of IIS.
Application pool will restart if any of the below mentioned files has changed
Jun 06, 2009 11:55 AM|NicoJuice|LINK
The server uses IIS 6.0 (and don't know if it's relevant, i'm using objects in my sessions)
All my resources are closed every time (only db conn needs to be closed )
Jun 07, 2009 06:07 AM|sumitd|LINK
Do you have below entry in IIS log files?
The location of IIS log files is below
#Software: Microsoft Internet Information Services 6.0
#Date: 2009-04-22 01:47:01
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
Jun 07, 2009 09:18 AM|NicoJuice|LINK
I can't see any log files in my IIS :s
It's when i go into "InProc" that my session is destroyed after 30 seconds :s
Jun 07, 2009 09:55 AM|XIII|LINK
Inproc only? Did you also try out of process by state manager on another server/pc?
Can you see if you get service recycles every 30 seconds? Is it exactly after 30 seconds? If so search for interfering services or check if that a file get saved in the /bin subfolder or that you something's written
every 30 seconds to the web.confg.
Jun 08, 2009 02:54 PM|NicoJuice|LINK
My problems seems to be solved after using IIS 7.0 (other hosting)
So IIS 6.0 seemed to be the "bad guy".
Thanks for hinting me in the right direction XIII