Session object Always be null?

Last post 05-15-2008 9:13 AM by suhieb. 5 replies.

Sort Posts:

  • Session object Always be null?

    05-14-2008, 11:55 AM
    • Loading...
    • suhieb
    • Joined on 10-02-2002, 9:39 PM
    • Posts 51

    Hi all,


    I developed web application using Asp.net with C# 2005 and AJAX and I host this application on my server, however, every thing is ok and the system work fine on local machine, but when I connect to this application from client side always I found the session's objects that are created in login page are null.


    Any one can help me, I would height appreciated.

     Best Regards

  • Re: Session object Always be null?

    05-14-2008, 12:04 PM
    • Loading...
    • moises.dl
    • Joined on 09-12-2006, 3:17 PM
    • SLC
    • Posts 425

    are you changing the web config programatically>?

    +
    I just want to let her know that im money and im here to party...
    +
    Entry Mid Lvl DRAGON MASTER SOFTWARE ENGINEER
  • Re: Session object Always be null?

    05-14-2008, 12:18 PM
    • Loading...
    • suhieb
    • Joined on 10-02-2002, 9:39 PM
    • Posts 51

    Thanks for replying, a don't make any thing on the web config file, just I add appSettings Tag.

     
  • Re: Session object Always be null?

    05-14-2008, 1:55 PM
    Answer
    • Loading...
    • mbuonarroti
    • Joined on 05-14-2008, 5:52 PM
    • Posts 2

    Check for the following: 

    Make sure cookies are enabled in your browser - session variables require cookies

    Search your code for manual overrides of session settings, e.g. Session.Abandon(), Session.Timeout

    If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly

    Regards
    Sandeep
  • Re: Session object Always be null?

    05-14-2008, 3:21 PM
    • Loading...
    • moises.dl
    • Joined on 09-12-2006, 3:17 PM
    • SLC
    • Posts 425

    i read this tid bit of information from another post, which is why i asked.

     

    Just a reminder, modify the web.config file will cause the appdomain to recycle, then all the in process session will be lost. About how to modify connection string at runtime,

    +
    I just want to let her know that im money and im here to party...
    +
    Entry Mid Lvl DRAGON MASTER SOFTWARE ENGINEER
  • Re: Session object Always be null?

    05-15-2008, 9:13 AM
    • Loading...
    • suhieb
    • Joined on 10-02-2002, 9:39 PM
    • Posts 51

    Thanks for replying, yes my server name has underscore, when I tried to connect with using IP address instead the server name every thing work fine.

     Thank you for help me

Page 1 of 1 (6 items)