Results 1 to 4 of 4

Thread: Session

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Posts
    16

    Session

    A strange problem:

    i have developed a small web application with a page int it.

    when i am trying to access it using http://localhost is works fine(session state is mainained & Session Id is same when I refresh page), but when i am using htt://machinename to run application i get a new session ID every time I refresh the page. all the settings in web.config are default, i haven't modified them.

    any ideas?
    vijay pahuja
    mumbai

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    I have the same problem, I don't know how to solve it though.

    I'm posting this only to get an e-mail when someone else will anser to your question, don't want to make a new thread.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Posts
    16
    it is working fine if we use netscape & also I copied & tried on other machine there also it works fine. I don't know may be there is some proble with my machine?
    vijay pahuja
    mumbai

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Posts
    16
    Here is the answer I got in a book:

    For performance reasons, the .NET Framework does not maintain state between the Web Server and the Web browser automatically, hence the Session ID is always different between submissions. however, when the Session object is used or when the Session_OnStart() event is added to the global.asax file, the Session ID would be maintained between two postbacks.
    vijay pahuja
    mumbai

Posting Permissions

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



Click Here to Expand Forum to Full Width