A
abcd
I have an asp page in which first line is
<@ ENABLESESSIONONSTATE = false %>
I want to stop the sessions for this page. I have global.asa page whose code
is like this
<SCRIPT RUNAT=Server Language=VBScript>
Sub Session_OnStart
Session("XYZ") = False
Session("ABC") = true
End Sub
</script>
When IIS is restarted and hit my asp page it goes to global.asa
session_onStart though I have disabled sessions on my page.
I dont want to execute global.asa at all when session is disabled on the
page....I get this wrong behavior only when IIS is restarted and page is hit
for the first time....for successive hits it doesnt go to global.asa and
keeps the session disable on the page....
I have tested for this 2 scenarios and I get the satisfactory results as per
my desire
1. u create a web application in IIS and disable session (by unchecking
"Enable Session State") , the page does not go to global.asa
2. if you dont create a web application and keep just a folder or a virtual
directory then the page does not go to global.asa
any clues why it goes to global.asa in other cases.
thanks
<@ ENABLESESSIONONSTATE = false %>
I want to stop the sessions for this page. I have global.asa page whose code
is like this
<SCRIPT RUNAT=Server Language=VBScript>
Sub Session_OnStart
Session("XYZ") = False
Session("ABC") = true
End Sub
</script>
When IIS is restarted and hit my asp page it goes to global.asa
session_onStart though I have disabled sessions on my page.
I dont want to execute global.asa at all when session is disabled on the
page....I get this wrong behavior only when IIS is restarted and page is hit
for the first time....for successive hits it doesnt go to global.asa and
keeps the session disable on the page....
I have tested for this 2 scenarios and I get the satisfactory results as per
my desire
1. u create a web application in IIS and disable session (by unchecking
"Enable Session State") , the page does not go to global.asa
2. if you dont create a web application and keep just a folder or a virtual
directory then the page does not go to global.asa
any clues why it goes to global.asa in other cases.
thanks