|
-
Apr 25th, 2003, 05:52 AM
#1
Thread Starter
Junior Member
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?
-
Apr 28th, 2003, 10:38 PM
#2
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.
-
Apr 28th, 2003, 10:53 PM
#3
Thread Starter
Junior Member
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?
-
May 5th, 2003, 06:26 AM
#4
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|