IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

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
  #1  
Old September 10th, 2003, 08:07 AM
johnno31 johnno31 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 johnno31 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Maintaining Session State

I am developing an intranet application for our office network using asp, SQL server and IIS.

Version 1 of the application is has worked absolutely fine up to now.

This morning, I "installed" version 2 onto the server and all works well apart from one really annoying thing...

Session variables are not maintained across pages.

E.g.

The login page creates two session variables, empID and Admin using the following asp code:

session.contents("empID")=cmd.parameters("EmpID").value
session.contents("Admin")=cmd.parameters("Admin").value

...then it redirects to another page as follows:

response.redirect("jobs.asp?stat=browse&type=my")

...jobs.asp cannot then find the session variables.

I have performed a few error-checking tests and found out that between any two pages, the sessionID is not the same. Therefore, i am under the impression that the server is not maintaining session state.

IIS is configured to enable session state with the timeout at a default 20mins.

Anyone got a clue what is going on? I am baffled, as i have used session variables in version 1 with no problems at all and no configuration has changed since then.

Cheers,

Chris

Reply With Quote
  #2  
Old September 10th, 2003, 01:51 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
Make sure cookies are enabled in your browser.

Make sure you didn't add an <% @EnableSessionState = false %> somewhere in your code.

There is a pretty extensive discussion of session state here

http://msdn.microsoft.com/library/d...ingSessions.asp

Reply With Quote
  #3  
Old September 11th, 2003, 03:03 AM
johnno31 johnno31 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 johnno31 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cheers for the link...however, i'm certain that i both have cookies enabled and have not got any code like that.

One article from microsoft I was looking at suggested that a security patch stops session state between requests. Link below:

http://support.microsoft.com/defaul...kb;en-us;316112

In short, The suggested resolution was to ensure that the server name was alphanumeric (it is) and to browse using the ip address (i was already)

After a few hours of trying different things, I gave up and went home!

This morning, I am in the process of reinstalling :@ How annoying

Reply With Quote
  #4  
Old September 11th, 2003, 12:36 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
One other thought, afaik if your redirect is in a different web application from the redirecting page you'll lose your original session state.

Reply With Quote
  #5  
Old September 12th, 2003, 02:50 AM
johnno31 johnno31 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 johnno31 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There was no joy after the reinstall.

I set all of the settings in iis to be exactly the same as on my development machine (which did work) and still no change.

Finally, I decided to just start messing about with the settings randomly and guess what, it started working!

I honestly have no clue what I did or why it works now when it didn't before.

I think I may have been playing with the application settings so, like Doug G said, i may have put some of my files in a different application.

Anyway, cheers for your help..no doubt that I will need it again sometime soon!

Chris

Reply With Quote
  #6  
Old September 12th, 2003, 12:55 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,539 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 13 h 47 m 49 sec
Reputation Power: 634
I'm glad you got it going. Can't argue with success however it occurs

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Maintaining Session State


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway