473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

FIXED: ASP Session stopped working across pages

Thought I'd post this in case it's useful to other searchers in the future.

On one of my sites I noticed that session variables had suddenly stopped
persisting across pages. Some things I had done that may have caused this
included installing the .Net framework on my server, and installing VS.Net
EA on my workstation. I had also migrated the server to active directory.

All of a sudden session variables were loosing their values if persisted
across pages (i.e. they still seemed to work on the same page on which the
value was assigned). The site concerned had an underscore in it's name. This
turned out to be the problem.

The problem was fixed by adding another identity to the site with a hostname
does not include an underscore. Open properties for the site in question and
on the Web Site tab click the Advanced... button. Use the same IP address
and Port for the new identity, but add a host header name without an
underscore. Add a new DNS alias record if required.

Make sure you browse the site using this new hostname. I left the old
hostname set up (the one with the underscore) so I didn't have to change
references in Interdev, etc. Fixed it for me.

Someone might like to comment on what the specific cause of this problem is.

Hope this helps,

Alan
Jul 19 '05 #1
4 3677
> Someone might like to comment on what the specific cause of this problem
is.

http://www.aspfaq.com/2157
http://support.microsoft.com/?kbid=316112
Jul 19 '05 #2
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Someone might like to comment on what the specific cause of this problem

is.

http://www.aspfaq.com/2157
http://support.microsoft.com/?kbid=316112


Thanks for that - I must have been caught out by the upgrade to IE6 (with
VS.Net EA I think) or an automatic update. On another note I didn't realise
that underscores weren't legal - I'll have to keep that in mind.

Cheers,

Alan
Jul 19 '05 #3
> Thanks for that - I must have been caught out by the upgrade to IE6 (with
VS.Net EA I think) or an automatic update. On another note I didn't realise that underscores weren't legal - I'll have to keep that in mind.


Yes, it's not documented very well (and I think underscores should be
illegal in machine names since they cause this kind of problem).

There is another similar case, using server.mappath. I can legally create a
folder within windows, called "my,folder," but because of the comma, this
will break server.mappath.

A
Jul 19 '05 #4
When you attempt to name an NT5+ machine with an underscore, you are
presented with a large warning about doing so. For some reason, some people
(i.e., my coworkers) choose to ignore this warning and forge ahead...

Ray at work
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Thanks for that - I must have been caught out by the upgrade to IE6 (with VS.Net EA I think) or an automatic update. On another note I didn't realise
that underscores weren't legal - I'll have to keep that in mind.


Yes, it's not documented very well (and I think underscores should be
illegal in machine names since they cause this kind of problem).

There is another similar case, using server.mappath. I can legally create

a folder within windows, called "my,folder," but because of the comma, this
will break server.mappath.

A

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ann Leland | last post by:
I have been using session variables to pass a user name from one ASP page to another inside framesets for 9 months and it stopped working this week. I have made no code changes but there was a...
6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
3
by: Jeff Shantz | last post by:
Hello, I've got two classes: EventLog and ErrorLog. I need to access Session state from these classes, but they are not associated with ASPX pages. So I've been accessing the Session object...
1
by: jpopper | last post by:
Hi, I am currently supporting a website that is a mix of asp and aspx pages. In one scenario I redirect the user from an asp page, to an aspx page, and then back to the asp page. When I return...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
1
by: chunt | last post by:
Hi Folks I've seen lots of people with this problem and had it myself, having solved it for myself I thought I'd post my issue on here in case it helps anyone. The problem was that a session...
4
by: Parrot | last post by:
For some reason my Session state stopped working in my webpages. I cannot pass a variable from one webpage to another using the Session. For example: Web page 1: Session = dbname;...
1
by: Shahar Nechmad | last post by:
I'm using ASP.NEt 2.0. I use the session to save important information about the user current session (for example the current project he is working on). I use those variables in almost every web...
8
by: Michael Schwarz | last post by:
Hi, I have a problem where I have two requests (i.e. two different windows that are using the same session) that are accessing the session collection. The requests will need more time on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.