F12 (Developer tools) re-initial the cookie value
Reported by
yasernad...@gmail.com,
May 11 2018
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 Steps to reproduce the problem: 1. Create a timer that lunch each second ans write document.cookie in console each second. 2. create a php file and set a session like "session_timeout" as 5 seconds. 3. run the php file and after 6 secs press F12 and check the console. during 5 sec all is correct and after that the session value that you put in back-end become disappear and when F12 pressed, the session value re initial with the current time. What is the expected behavior? What went wrong? The cookie values changed by pressing F12 Did this work before? N/A Chrome version: 66.0.3359.139 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
May 14 2018
,
May 14 2018
yasernaderi5980@ Thanks for the update. As per comment #1, can you please confirm if this issue can be closed? Thanks..
,
May 14 2018
I can not say until now if it's because of my code or Google Chrome. I check my code on firefox and there is any problem. I'll tell you as soon as possible. thanks.
,
May 14 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 14 2018
I found the problem. It's a little bit complicate to solve the problem. I explain you, and hope can resolve it. In my code I use a javascript library (NVD3: http://nvd3.org/). In line 155 of this library (https://github.com/novus/nvd3/blob/master/build/nv.d3.js#L155) the code: "window.nv = nv;" cause problem in Google Chrome. If I load this file when the session expired, if I click F12 the cookie restart (I mean: After 10 seconds I want to have a popup that the session expired and when I click F12 the popup disappeared, because cookie restarted and my code thinks that it's not expired).
,
May 16 2018
As per comment #6, it seems to be related to coding in javascript library and it is out of TE-scope. Hence, adding label TE-NeedsTriageHelp for further investigation from dev team. Thanks...!!
,
May 16 2018
yasernaderi5980@, can you provide the URL for us to reproduce the problem? Also, do you set the re-appearing session cookie for one particular URL or for multiple resources on the server? I think what happens there is that DevTools load a resource from the server (a source map, perhaps?) and this has a side effect of setting the cookie.
,
May 17 2018
I hope I could provide a url but I can not, because of the rules. This problem happen in all of the url. I don't think that it can be ceacuse of loading a resource from the server, it's because of the js library that I load for front-end. I try to create this error but not for now (I'm too busy), but as soon as I make it I'll informe you. Thanks.
,
Sep 18
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by yasernad...@gmail.com
, May 11 2018