Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 29th, 2005, 04:46 PM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
Angry Session Problem

This is with ASP, not ASP.net. I find that session variables are maintained only in HTTPS mode. If I use the regular http or move from https to http, my session variable are lost and the sessionid changes. I have looked into misnaming of the server and domain and that is not the problem. I have looked into the alias possibility and that is not the problem. Nothing that Microsoft suggests works and I have not seen this anywhere else. Does anyone have an idea?

Reply With Quote
  #2  
Old May 29th, 2005, 10:19 PM
Lafinboy's Avatar
Lafinboy Lafinboy is offline
The Laughing Moderator
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 3,267 Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)  Folding Points: 29199 Folding Title: Starter FolderFolding Points: 29199 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 1 Day 10 h 48 m 12 sec
Reputation Power: 15
Send a message via ICQ to Lafinboy Send a message via AIM to Lafinboy Send a message via MSN to Lafinboy Send a message via Yahoo to Lafinboy Send a message via Skype to Lafinboy
As a security issue, to prevent a glitch in the way IIS handles and stores SESSIONID's, the virtual folders in an HTTP site should have session handling turned off. This could be one possible cause. There could also be cache/session busting code in the page code, you could be moving between live(HTTP) and remote(HTTPS) sites, in which case the session state will not be maintained. Could you be more specific? Do sessions persist between HTTP pages? Is the session state only apparent when you switch between HTTP and HTTPS?

Reply With Quote
  #3  
Old May 30th, 2005, 02:30 AM
splinters's Avatar
splinters splinters is offline
Bug Catching Moderator
ASP Free Expert (3500 - 3999 posts)
 
Join Date: Sep 2004
Location: Australia
Posts: 3,553 splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 7190 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 11 h 8 m 16 sec
Reputation Power: 86
It sure sounds like your SSL server is physically separate from the normal server, and that the normal server doesn't have session state enabled.
__________________
Have I made your day? If so, please show your appreciation either by sending money or the cheaper, preferred option of clicking on the scales icon at the top right of this posting. My reputation needs all the help it can get.

Reply With Quote
  #4  
Old May 30th, 2005, 06:08 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
celsius reply

Quote:
Originally Posted by Lafinboy
As a security issue, to prevent a glitch in the way IIS handles and stores SESSIONID's, the virtual folders in an HTTP site should have session handling turned off. This could be one possible cause. There could also be cache/session busting code in the page code, you could be moving between live(HTTP) and remote(HTTPS) sites, in which case the session state will not be maintained. Could you be more specific? Do sessions persist between HTTP pages? Is the session state only apparent when you switch between HTTP and HTTPS?


Thanks for your help. I am not moving from live(HTTP) and remote(HTTPS) sites. Sessions do not persist between HTTP pages. The session state only persists between HTTPS pages.

Reply With Quote
  #5  
Old May 30th, 2005, 06:13 AM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
Click here for more information
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 21 m 19 sec
Reputation Power: 301
On the site or virtual directory that is not maintaining state, use IIS to check that it is allowed to maintain session state

Based on IIS 5

Right click on the item in question and then

Properties -> Configuration -> Options

And make sure that Enable Session State is checked
__________________
And he picked it all up... in his pick-up.





Friends of Shemzilla

Reply With Quote
  #6  
Old May 30th, 2005, 07:59 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
session state

Quote:
Originally Posted by splinters
It sure sounds like your SSL server is physically separate from the normal server, and that the normal server doesn't have session state enabled.


Not so. I wish it were that simple.

Reply With Quote
  #7  
Old May 30th, 2005, 08:01 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
session state II

Quote:
Originally Posted by elijathegold
On the site or virtual directory that is not maintaining state, use IIS to check that it is allowed to maintain session state

Based on IIS 5

Right click on the item in question and then

Properties -> Configuration -> Options

And make sure that Enable Session State is checked


I wish it were that simple. I have checked this and it is enabled.

Reply With Quote
  #8  
Old May 30th, 2005, 08:29 AM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
Click here for more information
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 21 m 19 sec
Reputation Power: 301
Are you using the same browser?

Reply With Quote
  #9  
Old May 30th, 2005, 08:36 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
Happens on any

Quote:
Originally Posted by elijathegold
Are you using the same browser?


Happens on any browser.

Reply With Quote
  #10  
Old May 30th, 2005, 08:58 AM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
Click here for more information
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1721622 Folding Title: Super Ultimate Folder - Level 4
Time spent in forums: 2 Months 2 Weeks 2 Days 4 h 21 m 19 sec
Reputation Power: 301
Do you have a 0 byte global.asa?
What happens if you use the IP Address to browse?

Last edited by elijathegold : May 30th, 2005 at 09:00 AM.

Reply With Quote
  #11  
Old May 30th, 2005, 09:49 AM
splinters's Avatar
splinters splinters is offline
Bug Catching Moderator
ASP Free Expert (3500 - 3999 posts)
 
Join Date: Sep 2004
Location: Australia
Posts: 3,553 splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 7190 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 11 h 8 m 16 sec
Reputation Power: 86
The only thing I can think of that stops session persistence across HTTP pages when session state is enabled, is the disabling of javascript on the client, though this doesn't explain why sessions persist across HTTPS pages.
I take it that we're talking about a single non-SSL web server, not a load-balanced cluster.

Reply With Quote
  #12  
Old May 30th, 2005, 09:53 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
0 global.asa

Quote:
Originally Posted by elijathegold
Do you have a 0 byte global.asa?
What happens if you use the IP Address to browse?


Yes, I looked into both. Did what Microsoft suggested and eliminated the global.asa and also put in some vanilla stuff. Both failed.

Works the same using IP.

Go Figure.

Reply With Quote
  #13  
Old May 30th, 2005, 09:56 AM
celsius celsius is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: Southeast
Posts: 9 celsius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 51 sec
Reputation Power: 0
Yes, not cluster

Quote:
Originally Posted by splinters
The only thing I can think of that stops session persistence across HTTP pages when session state is enabled, is the disabling of javascript on the client, though this doesn't explain why sessions persist across HTTPS pages.
I take it that we're talking about a single non-SSL web server, not a load-balanced cluster.


Yes, it is not a load-balanced cluster. It does have a certificate of course. I guess my only recourse is to run everything as https.

Reply With Quote
  #14  
Old May 30th, 2005, 10:21 AM
splinters's Avatar
splinters splinters is offline
Bug Catching Moderator
ASP Free Expert (3500 - 3999 posts)
 
Join Date: Sep 2004
Location: Australia
Posts: 3,553 splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)splinters User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 7190 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 11 h 8 m 16 sec
Reputation Power: 86
Weird! But there has to be a logical explanation for this - you shouldn't have to resort to SSL to make it work.
Do you have another test server to try with the same pages and client?
Are you convinced that javascript is enabled on the client?
The asp pages don't have <%@ enablesessionstate=false%> at the start?
(Clutching at straws here).

Reply With Quote