Empty Session Object on Port 888

  • Thread starter Thread starter Adam Barker
  • Start date Start date
A

Adam Barker

Hi all,

I have an ASP.NET site running on port 888, but it doesn't seem to save
anything in the Session object. This only happens when I reference the site
using the machine name instead of localhost - when I use 'localhost' it
works fine.

Any ideas?

Thanks in advance

Adam
 
Here how session works.

Everytime you hit page browser sends cookie to the server. Based on those cookies server (ASP.NET) finds your session object.
Bowser sends only those cookies that belong to that site. Meaning that cookie that was set by www.msn.com will never be sent to www.yahoo.com.

I suspect the same happens in your case. When you hit your site with localhost, server creates new session. As soon as you hit it with the machine name browser does not send the cookie and your session is lost.
Name of the server must match for browser to send a cookie.

for browser localhost, 127.0.0.1, machine name 3 different servers

George.









Hi all,

I have an ASP.NET site running on port 888, but it doesn't seem to save
anything in the Session object. This only happens when I reference the site
using the machine name instead of localhost - when I use 'localhost' it
works fine.

Any ideas?

Thanks in advance

Adam
 
Back
Top