FIXED: ASP Session stopped working across pages

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 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


    Alan Guest

  2. Similar Questions and Discussions

    1. #38816 [Opn]: PHP code that was working perfectly recently stopped working.
      ID: 38816 User updated by: mtoohee at gmail dot com -Summary: PHP code that was working perfectly recently stopped....
    2. Active Server Pages service stopped
      Running W2k Server SP4, my application event viewer says that the Active Server Pages service is stopped. How and what do I need to do to start...
    3. ASP stopped working in IIS 5
      Take a look at the thread with almost the same subject from about an hour prior to yours. Also take a look at http://www.aspfaq.com/2109. Ray at...
    4. My PE2 stopped working on my E-Mac
      Hi can someone help out there ? I have E-mac with 768 MB RAM. My PE2 has approximately 5400 pictures and I have been tranferring this pictures to...
    5. ASP.NET pages stopped working
      Hi Group, I have a new Dell server that has the .NET Framework 1.1 installed on Windows 2000 SP 3. All was well until I installed Project...
  3. #2

    Default Re: FIXED: ASP Session stopped working across pages

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

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


    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: FIXED: ASP Session stopped working across pages

    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:%232uYTDxgDHA.696@TK2MSFTNGP09.phx.gbl...
    > > Someone might like to comment on what the specific cause of this problem
    > is.
    >
    > [url]http://www.aspfaq.com/2157[/url]
    > [url]http://support.microsoft.com/?kbid=316112[/url]
    >
    >
    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


    Alan Guest

  5. #4

    Default Re: FIXED: ASP Session stopped working across pages

    > 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


    Aaron Bertrand [MVP] Guest

  6. #5

    Default Re: FIXED: ASP Session stopped working across pages

    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]" <aaron@TRASHaspfaq.com> wrote in message
    news:%23M%23Y0w1gDHA.4024@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
    >
    >

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139