28 [fix]-Session variable value lost in Chrome, but works fine in IE & FF - wikitechy.com

[fix]-Session variable value lost in Chrome, but works fine in IE & FF!

Wikitechy | 17366 Views | asp.net | 01 Jun 2016

 

Scenario:

The chrome browser is used to execute an Asp.net application wherein the issue occurs when handling Session ID, a Cookie value.

Error:

Session variable value lost in Chrome, but works fine in IE & FF!

Fix 1:

Asp.Net applications has a nature of storing session variable in the form of cookies. Check whether cookie storage is enabled in Chrome.

Fix 2:

1. The problem may sometimes occur in Chrome browser due to missing of favicon.ico. It triggers a call to 404, which initiates the footer to alter the Session Variables. 

2. The other problem with chrome is that it throws a 302 redirect error, which kills the Session Variables. 

Hence the fix would be to place a “.ico” file in the root of the website.

Fix 3:

Chrome differentiates the website addresses domain.com and www.domain.com but IE and FF assume it to be the same. Hence ensure that the same domain address is used throughout the website.

Fix 4:

Remove the line: base href="http://mysite/" from the head tag in the HTML code.

Fix 5:

Go to chrome://settings/cookies and locate localhost to remove the cookies and execute the website to find that the error is resolved.

Fix 6:

Issue occurs with chrome browser version. The initial version was 45.0.2454.93 und after updating to 45.0.2454.99 the problem is fixed.

Fix 7:

There are cases where the path of an image is specified wrongly in a CSS file and hence the browser raises issues. Fix the path and restart the web app.




Workshop

Bug Bounty
Webinar

Join our Community

Advertise
<