Questions tagged as 'cookies'

0
answers

Cookie path does not work

I create a cookie with javascript, even beauty, but when I use the path it just stops working, so it works: document.cookie="gravado=sim"; The problem is that this way I can not access it for other pages, it only exists on the page in quest...
asked by 23.07.2018 / 18:59
1
answer

Cookie returning duplicate value

I'm saving a cookie in JSON format. In the properties of this object I have links with several parameters. At each link change, I update the cookie with the new value. Example of value saved in cookie: {"Url":"https://www.site.com.br? utm_sour...
asked by 05.06.2018 / 18:54
0
answers

How do I disable via Javascript that cookies load data into only one specific page

I have a registration page that has email and password, when the user clicks to save email and password in the login, the auto fill of the coockies already fill in the data of the cadastre. I can not clean the coockie and they have to work norma...
asked by 09.04.2018 / 22:22
1
answer

Recording Sessions in the Browser

How to record sessions in the browser with php. I currently have a login system, and always validate the [$_SESSIONS] in the browser, but every time I close and reopen the browser, login no longer exists. How best to store your data...
asked by 04.09.2017 / 15:51
0
answers

Google Analytics and cookies [closed]

My question is: I'm developing a website and I want to monitor analytics with Google Analytics, however I've been reading some articles about cookies and I did not realize if I need to program my website with some kind of cookies to be able to f...
asked by 22.08.2017 / 12:11
0
answers

How to identify the user in Ratchet PHP

I'm creating a multi-room chat with websockets, using PHP Ratchet. The framework itself facilitates the process of identifying the user, searching for their name through cookies, as can be seen here: link . > In my localhost, I can not get th...
asked by 29.03.2017 / 22:44
2
answers

Customize PHP session cookie

I'm using a custom handler to save sessions in MongoDB and a custom class to create cookies with attribute SameSite using the header() function, though this specification is not widely adopted (yet). However, the P...
asked by 06.03.2017 / 16:46
1
answer

Ideas for saving user access

I'm using the google API on my site. When the user grants authorization to use his account, google returns me two tokens: a token that I use as "password" to post on behalf of the user and that expires in 1 hour and a second fixed token that I u...
asked by 01.10.2016 / 04:02
0
answers

Store video session within session or php cookie

How do I store the time of viewing a video (html5) in a session or cookie with php? The idea is to create a mini video platform, and store the runtime inside a session | cookie, and when the user sees it again, start from where it left off....
asked by 01.04.2016 / 19:09
1
answer

PHP - Sessions and cookies

I have a page login.php which after being filled goes to processa.php and then enters the session and cookie: $cookie_name = "Administrador"; $cookie_value = $id; setcookie($cookie_name, $cookie_value, time() + (3600), "/"); $_SE...
asked by 12.04.2016 / 22:23