Avatar billede surre Nybegynder
10. april 2006 - 09:21 Der 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?
Avatar billede -mundi- Nybegynder
10. april 2006 - 09:43 #1
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
Avatar billede -mundi- Nybegynder
10. april 2006 - 09:48 #2
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.
Avatar billede surre Nybegynder
10. april 2006 - 10:15 #3
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!
Avatar billede Ny bruger Nybegynder

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.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester