Loosing Session Variable in ASP.NET

Discussion in 'ASP .Net' started by Robert Berezka, Feb 25, 2004.

  1. hi!

    I am working on a ASP.NET project. My problem with the session vaiable is:



    Localy on my client computer, where I develope my ASP.Net application,
    Everything runs fine.

    When I transfer the hole project to the windows 2003 server (IIS6 is running
    on it) and start the web-application

    (on the local browser on the web server) it runs fine, too.



    Outside on the internet it works also fine, only in the company

    network (intranet) the application is getting crazy with the session
    variables. It is losing its value!



    I hope you find some time for me, to answer my question.

    Thank you

    Sicearly, Robert




    --
    Röhrer Int. Speditions- und Transport
    Gesellschaft m.b.H.
    Robert Berezka IT R&D
    Kasernstraße 5
    A-2301 Groß-Enzersdorf
    Tel: ++43(0) 2249 / 7474 - 285
    Fax: ++43(0) 2249 / 7474 - 3
    email:
     
    Robert Berezka, Feb 25, 2004
    #1
    1. Advertising

  2. Sessions depend upon cookies being sent to the browser. It could be that
    there is something that is blocking the cookies, or it could be a corporate
    policy set for the browsers to not accept cookies. You may have to resort to
    cookieless connections.

    Hope this helps,
    Mark Fitzpatrick
    Microsoft MVP - FrontPage

    "Robert Berezka" <> wrote in message
    news:Ocdf4c6%...
    > hi!
    >
    > I am working on a ASP.NET project. My problem with the session vaiable is:
    >
    >
    >
    > Localy on my client computer, where I develope my ASP.Net application,
    > Everything runs fine.
    >
    > When I transfer the hole project to the windows 2003 server (IIS6 is

    running
    > on it) and start the web-application
    >
    > (on the local browser on the web server) it runs fine, too.
    >
    >
    >
    > Outside on the internet it works also fine, only in the company
    >
    > network (intranet) the application is getting crazy with the session
    > variables. It is losing its value!
    >
    >
    >
    > I hope you find some time for me, to answer my question.
    >
    > Thank you
    >
    > Sicearly, Robert
    >
    >
    >
    >
    > --
    > Röhrer Int. Speditions- und Transport
    > Gesellschaft m.b.H.
    > Robert Berezka IT R&D
    > Kasernstraße 5
    > A-2301 Groß-Enzersdorf
    > Tel: ++43(0) 2249 / 7474 - 285
    > Fax: ++43(0) 2249 / 7474 - 3
    > email:
    >
    >
     
    Mark Fitzpatrick, Feb 25, 2004
    #2
    1. Advertising

  3. Robert Berezka

    Fred Nelson Guest

    Mark:

    I have also found that I can "loose" session variables if the URL is
    changed. For example if the user accesses:

    http://myserver/myapp

    and for some reason you redirect them to another URL - such as an IP address

    http://123.12.1.123/myapp

    You will also loose your session variables.

    This also can happen if you place the web page in a frame and don't allow
    the application to change the URL - took me a day to figure that one out!

    Hope that helps!

    Good Luck!



    "Mark Fitzpatrick" <> wrote in message
    news:euLD7i6%...
    > Sessions depend upon cookies being sent to the browser. It could be that
    > there is something that is blocking the cookies, or it could be a

    corporate
    > policy set for the browsers to not accept cookies. You may have to resort

    to
    > cookieless connections.
    >
    > Hope this helps,
    > Mark Fitzpatrick
    > Microsoft MVP - FrontPage
    >
    > "Robert Berezka" <> wrote in message
    > news:Ocdf4c6%...
    > > hi!
    > >
    > > I am working on a ASP.NET project. My problem with the session vaiable

    is:
    > >
    > >
    > >
    > > Localy on my client computer, where I develope my ASP.Net application,
    > > Everything runs fine.
    > >
    > > When I transfer the hole project to the windows 2003 server (IIS6 is

    > running
    > > on it) and start the web-application
    > >
    > > (on the local browser on the web server) it runs fine, too.
    > >
    > >
    > >
    > > Outside on the internet it works also fine, only in the company
    > >
    > > network (intranet) the application is getting crazy with the session
    > > variables. It is losing its value!
    > >
    > >
    > >
    > > I hope you find some time for me, to answer my question.
    > >
    > > Thank you
    > >
    > > Sicearly, Robert
    > >
    > >
    > >
    > >
    > > --
    > > Röhrer Int. Speditions- und Transport
    > > Gesellschaft m.b.H.
    > > Robert Berezka IT R&D
    > > Kasernstraße 5
    > > A-2301 Groß-Enzersdorf
    > > Tel: ++43(0) 2249 / 7474 - 285
    > > Fax: ++43(0) 2249 / 7474 - 3
    > > email:
    > >
    > >

    >
    >
     
    Fred Nelson, Feb 25, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonk Eidersteldvr

    Session Variables - Loosing

    Jonk Eidersteldvr, Aug 29, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    543
    Mark MacRae
    Aug 29, 2003
  2. Radu Colceriu

    Loosing session variables

    Radu Colceriu, Jan 16, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    710
    Hermit Dave
    Jan 16, 2004
  3. Patrick

    ASP.NET - Loosing Session Variables

    Patrick, Aug 3, 2004, in forum: ASP .Net
    Replies:
    9
    Views:
    3,314
    Patrick
    Aug 12, 2004
  4. Replies:
    15
    Views:
    5,534
    Decide Now
    Apr 17, 2006
  5. Sen

    loosing Session ID in asp.net in Web Farm

    Sen, May 5, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    209
Loading...

Share This Page