Questions tagged as 'cookies'

3
answers

Indications for the use of cookies?

What would be the indication to use cookies ? They would be a IsolateStorage of web development, but until today I could not find an application for them, in a social media project I'm working I used them only once to remember th...
asked by 06.01.2016 / 03:47
3
answers

How do youtube know which videos we have already watched?

The question by itself already describes my interest, but what I'm really wanting to know is how youtube stores the information saying that we've already watched that video. I thought about storage with cookies, but it would be unfeasible since...
asked by 23.07.2014 / 23:43
1
answer

PHP (setcookie) vs header (header)

I see some frameworks, CMS and the like, write cookies directly in PHP with setcookie and others stock to emit in headers at the end of execution. I would like to know how to create a pattern for creating cookies.    PHP     ...
asked by 30.07.2014 / 09:39
2
answers

How to make a request by sending cookie data?

I want to make a GET request for a given URL, but I want to send cookie data as a web browser does. For example, in the code below: from urllib import request req = request.Request('http://servidor/pagina.html') response = request....
asked by 05.02.2014 / 16:01
1
answer

How do I set cookies and set expiration time?

I have a div where I search only logged in users, in it I'm displaying the users but every update is inserted new records, gave me the hint of using cookise more never worked with it. the following code is giving the error Warning: Can not modif...
asked by 10.02.2016 / 01:07
1
answer

Problems with displaying cookies

I have a Cookie set with the name 68 and value 68, it appears in the cookies settings in the browser, but on pages it works and in others it simply does not exist $id_imovel = (isset($_COOKIE[$id_imovel_form])) ? $_COOKIE[$id_imovel...
asked by 11.09.2016 / 19:53
1
answer

Local Storage or Cookie, where is it better to store an authorization token?

We have a project and we will use token de autorização , we are using AngularJs for front end and back we develop in Java using Spring Framework and Spring Security , and send token header ....
asked by 28.10.2016 / 13:05
2
answers

How to log in to FaceBook using an active session cookie in the DOM?

I'm studying security on web applications. For educational purposes, I logged into my facebook page and copied my active session cookie from document.cookie , then opened another browser, logged on to the facebook homepage (unlogged) an...
asked by 28.06.2015 / 07:08
1
answer

How to work a secure session in PHP using cookies so that the session does not expire when closing the browser?

In PHP, I usually work with restricted user authentication using the $_SESSION variable, however I want to change this method to cookies so that the session does not close when closing the browser. On sites like Google and Facebook, the u...
asked by 26.02.2014 / 21:03
1
answer

The cookie time created when I close the browser expires

I'm here asking why unfortunately I've tried all the alternatives in polls since last week. And I'm probably doing something wrong. Come on: setcookie("email", "email", time() + (360 * 24 * 3600)); This is the code that I created the...
asked by 05.03.2015 / 20:21