Avatar of Arikkan
Arikkan
Flag for United States of America asked on

Session lost on Chrome

I have a peculiar problem.

I have a VB.Net Web application deployed on the server and it was working with all browsers (IE/Chrome/Firefox/Safari)
Now we switched the .Net Framework from 3.5 to 4.0 and the application works perfectly fine on every browser EXCEPT Chrome.

In chrome, the session is retained as long as I am on the same page. But surprisingly, I just loose the session on using "Response.Redirect(....)" to another page.

I tried chrome in Windows and even Chrome on MAC. It is the same behavior. Cookies are enabled and we have not changed anything else except the framework.

I am totally lost here.
ASP.NETWeb BrowsersWeb Applications

Avatar of undefined
Last Comment
Arikkan

8/22/2022 - Mon
Dave Baldwin

Are you testing on 'localhost'?  Chrome won't accept cookies on 'localhost'.
Arikkan

ASKER
Hi,

The following scenarios work:
1. I have tested the application on localhost  (With Chrome and other browsers) -- Works good.
2. I even hosted the solution on my local machine and browsed from remote machine (With Chrome and other browsers) -- Works good

Now as soon as I deploy application on Server:
1. It works with every Browser
2. With Chrome, session is lost on every page I change.

Any ideas?
Dave Baldwin

What's the server on the different machines?  You can use Wireshark to monitor the network traffic to see what is different.  https://www.wireshark.org/
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Arikkan

ASKER
The server is Win Server 2008 R2 Standard, IIS7.
It has many more hosted applications and every browser is running fine on those other hosted applications.

Just my application hosted on server is failing (Only on Chrome).   :-(
Now why would only Chrome fail?
Dave Baldwin

I don't know, that's why I recommended Wireshark.
Arikkan

ASKER
Ok. Let me try that.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Arikkan

ASKER