10. april 2006 - 09:21Der er
2 kommentarer og 1 løsning
Session values come and go
We have just recently launched a new website but on the production server the sessions go all mad. They randomly come and go as you navigate on the site. For instance, I can update the same page repeatedly and sometimes the sessionvalue (i.e. holding a login name) is there, sometimes not. I have tested on different browsers, and it's not a client browser cache problem. We are using Asp.Net 1.1 on a windows server 2003, IIS 6.0
On the test server this problem doesn't occur. The sessions work just fine. So, what could be the reasons for this?
Hos Computerworld it-jobbank er vi stolte af at fortsætte det gode partnerskab med folkene bag IT-DAY – efter vores mening Danmarks bedste karrieremesse for unge og erfarne it-kandidater.
Its probably that IIS is set to use multiple "worker processes" , open your IIS manger console and navigate to "application pool" , rightclick the application pool you have assigned to the website, click properties and go to the "performance" section, at the bottom you'll find the "web garden". If that is set to more than 1 , then lower the value to 1
If you have other websites on the server, that benefits from using multiple worker processes, and share the same application pool, then you can create a new application pool and assign that to your website.
Thanks! It actually hit me right after I wrote the question that we have two worker processes running, so I changed it and that was it! But since you came upp with the correct solution of course you shall have the credit and the points anyway!
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.