[fix]-Session variable value lost in Chrome, but works fine in IE & FF!
The chrome browser is used to execute an Asp.net application wherein the issue occurs when handling Session ID, a Cookie value.
Session variable value lost in Chrome, but works fine in IE & FF!
Asp.Net applications has a nature of storing session variable in the form of cookies. Check whether cookie storage is enabled in Chrome.
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.
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.
Remove the line: base href="http://mysite/" from the head tag in the HTML code.
Go to chrome://settings/cookies and locate localhost to remove the cookies and execute the website to find that the error is resolved.
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.
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.