|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
On my local machine (windows 2000), IIS is not persisting sessions. I can set session variables and print them out, but when I refresh the page, the variables are gone. I created an ASP with the line "Response.Write Session.SessionID" and each time I refresh, I get a new session ID.
I tried accessing this asp from several different machines with several different browsers and got the same result. I also went to the web site settings and ensured that "Enable Session State" was checked. Any clues, anyone? |
|
#2
|
|||
|
|||
|
Check in the IIS mmc and verify that you're web directory is set up as a web application.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
It is. That is how I verified (as I mentioned above) that "Enable Session State" was checked.
|
|
#4
|
|||
|
|||
|
Also, if it was not set up as a web app, I wouldn't be getting anything back.
|
|
#5
|
|||
|
|||
|
I just tried uninstalling and re-installing IIS. Stil broken
. |
|
#6
|
|||
|
|||
|
So, I am still debugging my machine, wondering why sessions don't work. Then, when fooling with the global.asa, I notice it starting to work. So I empty the global.asa and it stops working again. So, I try adding just a space to global.asa, AND IT WORKS! So I search google for "session global.asa empty" and look what I found!
http://support.microsoft.com/defaul...kb;EN-US;281298 |
|
#7
|
|||
|
|||
|
Thanks for posting the update.
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > IIS not persisting sessions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|