Questions tagged as 'cookies'

2
answers

Retrieve cookie expiration time in javascript or jquery

Is there any way to retrieve the time remaining for a cookie to expire in javascript or jquery?     
asked by 28.07.2014 / 23:37
3
answers

Is saving the user ID on COOKIES safe?

Saving ID of user to Cookies is safe as it is easy to see through the browser. My doubts are as follows: Is it safe to store% of user% in Cookies ? If it is not secure, what% method can I use? How can I be using it in PHP ?
asked by 22.04.2016 / 03:04
2
answers

How do I delete all Cookies from a page with JavaScript?

Is there a way to exclude all (already existing) cookies related to a page using just JavaScript?     
asked by 17.10.2014 / 04:28
2
answers

Use Cookie or LocalStorage?

I was developing a plugin for jQuery and needed to store some information. I thought about using localStorage of HTML5 , however I was alerted by a friend that in some old versions of browsers it would not work, and that I should...
asked by 23.01.2015 / 15:55
2
answers

How to access COOKIE on another page?

I have a file in which it creates a cookie. And I have another file in which I call this cookie, but it gives me this error: Undefined index: name in Here is the code for the first file: setcookie('nome', $dataNome', time() + (2 * 3600));...
asked by 28.08.2014 / 22:02
2
answers

How to store and retrieve the previous URL within the Cookie

The whole script is in the bookmarks / bookmarks bar, called: Bookmarklet I've already done script . See: Before c / referrer javascript: var URL = document.referrer; location.href = URL; Now with cookie javascript: var URL...
asked by 07.07.2016 / 01:26
1
answer

What is the use and how to use Netscape HTTP Cookie File?

I need to save cookies of some accounts that authenticate my APP to Twitter, I searched the web and found something like:? # Netscape HTTP Cookie File # https://curl.haxx.se/docs/http-cookies.html # This file was generated by libcurl! E...
asked by 26.06.2017 / 01:30
1
answer

How to enable cookies on Electron

I need to use http only cookies in electron, but they are disabled, does anyone know how to enable?     
asked by 15.07.2016 / 16:41
2
answers

How to tell if a person has visited a page in the last 2 days

I have an idea, to show an ad only to those who have visited the site before, and another ad for people who have never visited before .. (LAST 2 DAYS) SOMETHING LIKE IT: <?php if ($visitou = sim): ?> APARECE ANUNCIO PRA QUEM JA...
asked by 13.10.2018 / 23:16
1
answer

Random site theme with change every 30 minutes

I need my site to change the theme randomly every 30 min. So the logic would be: User enters the site now and sees it in blue (which is standard), but if this same user comes back in 30 minutes he should see the site in one of the other two O...
asked by 31.08.2015 / 01:59