Empty Session Object on Port 888

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
 
G

George

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top