Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Installation > Session won't stick in Vista IIS 7, classic ASP app

Reply
Thread Tools Display Modes

Session won't stick in Vista IIS 7, classic ASP app

 
 
goldnhue
Guest
Posts: n/a

 
      04-25-2007
Just got new PC with Vista Ultimate. Transferred my classic ASP program over
and can connect fine to the site and the Access database (thanks to your IIS7
forum). But I can't get my session variables to set in the IIS7/Vista
environment!

I checked everything in article
http://clasicasp.aspfaq.com/genera/w...les-stick.html,
all is OK.

Also, it's not a browser issue cause I can access the site copy on my
Win2000 pc fine from the browser on the Vista machine.

My settings on IIS 7 are:
- For Session State settings, Mode= "In Process" (and the ASP.NET state
service is running), , Cookie settings = "Use Cookies, and "Use hosting
identify for impersonation" is enabled.
- For ASP, Services, Session Properties, "Enable Session State" = True

I disabled my McAfee security center completely to test and it still did not
work.

Any other suggestions??

NOTE: For testing, I simply set a session & application variable in the
global.asa file sub Application_OnStart and Session_OnStart ..(i.e.,
Application("Users")=0, session("test") = "test"), I then try to retrieve it
on the home page (i.e., response.write(session("test") ...)

 
Reply With Quote
 
 
 
 
goldnhue
Guest
Posts: n/a

 
      04-26-2007
UPDATE: It appears the global.asa isn't firing since the
session/application variables stick fine if set elsewhere in the app. Why
might the global.asa not work? I created the site by adding a new "Virtual
Directory" to the default web site.

Thanks

"goldnhue" wrote:

> Just got new PC with Vista Ultimate. Transferred my classic ASP program over
> and can connect fine to the site and the Access database (thanks to your IIS7
> forum). But I can't get my session variables to set in the IIS7/Vista
> environment!
>
> I checked everything in article
> http://clasicasp.aspfaq.com/genera/w...les-stick.html,
> all is OK.
>
> Also, it's not a browser issue cause I can access the site copy on my
> Win2000 pc fine from the browser on the Vista machine.
>
> My settings on IIS 7 are:
> - For Session State settings, Mode= "In Process" (and the ASP.NET state
> service is running), , Cookie settings = "Use Cookies, and "Use hosting
> identify for impersonation" is enabled.
> - For ASP, Services, Session Properties, "Enable Session State" = True
>
> I disabled my McAfee security center completely to test and it still did not
> work.
>
> Any other suggestions??
>
> NOTE: For testing, I simply set a session & application variable in the
> global.asa file sub Application_OnStart and Session_OnStart ..(i.e.,
> Application("Users")=0, session("test") = "test"), I then try to retrieve it
> on the home page (i.e., response.write(session("test") ...)
>

 
Reply With Quote
 
goldnhue
Guest
Posts: n/a

 
      05-03-2007
Got answer in another forum ... in IIS7, the site must be set up as an
application, not a virtual directory, in order for the global.asa to fire.

"goldnhue" wrote:

> UPDATE: It appears the global.asa isn't firing since the
> session/application variables stick fine if set elsewhere in the app. Why
> might the global.asa not work? I created the site by adding a new "Virtual
> Directory" to the default web site.
>
> Thanks
>
> "goldnhue" wrote:
>
> > Just got new PC with Vista Ultimate. Transferred my classic ASP program over
> > and can connect fine to the site and the Access database (thanks to your IIS7
> > forum). But I can't get my session variables to set in the IIS7/Vista
> > environment!
> >
> > I checked everything in article
> > http://clasicasp.aspfaq.com/genera/w...les-stick.html,
> > all is OK.
> >
> > Also, it's not a browser issue cause I can access the site copy on my
> > Win2000 pc fine from the browser on the Vista machine.
> >
> > My settings on IIS 7 are:
> > - For Session State settings, Mode= "In Process" (and the ASP.NET state
> > service is running), , Cookie settings = "Use Cookies, and "Use hosting
> > identify for impersonation" is enabled.
> > - For ASP, Services, Session Properties, "Enable Session State" = True
> >
> > I disabled my McAfee security center completely to test and it still did not
> > work.
> >
> > Any other suggestions??
> >
> > NOTE: For testing, I simply set a session & application variable in the
> > global.asa file sub Application_OnStart and Session_OnStart ..(i.e.,
> > Application("Users")=0, session("test") = "test"), I then try to retrieve it
> > on the home page (i.e., response.write(session("test") ...)
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN Session Icon Disappears, so I can't close Session mcambrose Windows Vista File Management 0 11-29-2007 02:16 PM
vista session limits ray Windows Vista General Discussion 2 08-02-2007 08:44 PM
Vista Classic Theme DWM enabled Windows Classic Theme!!! corbomite Windows Vista General Discussion 0 06-29-2007 07:26 PM
Any reason Session ID = 1 instead of 0 on Vista? Joseph Geretz Windows Vista General Discussion 8 02-27-2007 06:21 PM
Any reason Session ID = 1 instead of 0 on Vista? Joseph Geretz Windows Vista Security 8 02-27-2007 06:21 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59