Randomly Losing Session Variables Only In Google Chrome & URL Rewriting
I had the same issue, and to fix it I only had to create a favicon.ico and place it in the webroot - otherwise I could see using Fiddler that a 404 resulted for this with every page request from Chrome (despite me not actually linking to a favicon in the page markup).
In my mind this is clearly a bug in Chrome, as the lack of a favicon should have no bearing on session data.
.htaccess file causing Chrome to lose session data
I guess it's caused by the [QSA]
flag. You might try this:
RewriteRule .* customForest.php?%{QUERY_STRING} [L]
ASP.NET randomly losing session values
For anyone that is interested, or dealing with similar issues, I wanted to follow up with the cause of my problem here.
I implemented NCache out-of-process state server for Application Cache and Session State about 7 or 8 months ago. Unfortunately, moving the session out-of-process has not had any impact of my problem of losing random session variables during report selection on my site. And, as I had been unable to replicate this problem, I had not put more effort into trying to fix it until recently when another problem made the light go off in my head.
To get to the point - I was not overwriting the session variables somewhere that I didnt realize, but the problem was the user was opening up a second (or third) tab to compare report selection options side by side. We have several custom reports where the user can select multiple options to generate custom reports (think of it like a wizard control where there are several steps to create a custom report). If a user is on step 3 of 5, and then opens a new tab and starts going through the report selection process again, the new selections are overwriting the old selections b/c the 2 tabs shared the same session. I verified this was the case by opening multiple tabs and stepping through the selection process.
I am in the process of trying to distinguish between multiple report runs so that the selections for one report are stored using a unique session key from other report selections. That is proving difficult as well, but is not really related to the problem I thought I was having with missing session data.
If anyone finds this post and thinks they are losing session data randomly and cant replicate it, try debugging your site and opening multiple tabs. Stepping through both tabs at the same time illuminated the problem for me.
HTH
Related Topics
Work-Around for PHP5's Pdo Rowcount MySQL Issue
Ios7 - Receipts Not Validating at Sandbox - Error 21002 (Java.Lang.Illegalargumentexception)
Can't Insert Russian Text into MySQL Database
How to Include Config.PHP Efficiently
Accented Characters in MySQL Table
Laravel Auth:Attempt() Will Not Persist Login
Sending Bcc Emails Using a Smtp Server
How to Use SQL Server Connection in Laravel
Avoiding MySQL Injections with the Zend_Db Class
Colon After Method Declaration
Phpexcel Download Using Ajax Call
How to Insert into MySQL Using a Prepared Statement with PHP
PHP Replaces Spaces with Underscores
Kill MySQL Query on User Abort
Request Exceeded the Limit of 10 Internal Redirects
Most Efficient Way to Get Next Letter in the Alphabet Using PHP