Questions tagged as 'cookies'

1
answer

How to create a cookie for popup ads to open 1 time only 24 hours

I need help with my site. I use the popup format to modernize my website, but I gain the first time it is displayed for the same user in the 24 hour period ... Only this popup is being opened 4,5 and you 6 times for the same one user. I would li...
asked by 10.02.2016 / 08:29
1
answer

How to get cookie already existing via javascript

In my project I have a page that is html . And as my project is in ASP.NET MVC, I can not validate whether the user is logged in or not because that page is not razor . Searching, I found the javascript cookie , which creates, reads, and d...
asked by 26.11.2014 / 15:09
2
answers

PHP Cookie is not set on remote server

I implemented a cookie that works on the local server but does not work on the remote server, I do not understand why. Thanks for any help. I have the following code: <?php if (isset($_POST['name']) && !empty($_POST['n...
asked by 09.07.2014 / 15:29
1
answer

Set, fetch and check a Cookie after a video (YouTube API) finish - JavaScript

I need the browser to understand when a user viewed a YouTube video (YouTube API) to the end and records that, but all client-side. But even though I already have the function that recognizes the end of the video, I can not use and fire other fu...
asked by 05.10.2018 / 20:13
1
answer

Redeem Cookie values

Good afternoon I have an application in MVC that generates some cookies, I would like to know if it is possible to recover these cookies through an Api, as I tried and unfortunately could not. Code generated for api: [Route("ResgataCookie")...
asked by 25.09.2018 / 21:27
2
answers

Applying contrast on the page by means of cookies

I have a button on an accessibility bar, which when clicked calls the following function: function contraste2 () { var css = document.querySelector('#css'); var contraste = Cookies.get("contraste"); if (contraste == "contrastein...
asked by 10.08.2018 / 19:15
0
answers

Checkout page + PAGSEGURO API | How to get cookies from other browsers [PHP]

Well I was doing a shopping cart system with php but I got to a level I got stuck ... As "everyone" knows in the PagSeguro API for HTML payment you should declare the items to be paid example: <input name="itemDescription1" type="hidden"...
asked by 27.05.2018 / 17:46
1
answer

How to Expire Cookies? [duplicate]

Hey guys,   This is the following I created a login system that uses a cookie to remember the user's password so everything works fine, the problem is when it comes to inspiring these cookies, in the panel of my website there is a button that...
asked by 02.05.2018 / 16:24
0
answers

How to unset a coockie when closing the browser

In PHP I'm creating a login coockie like this: $data = "e".gmdate("dmY"); setcookie("elogado", $data, time() + 600, "/"); When I close the browser and reopen, I will check the coockie like this: if(isset($_COOKIE["elogado"])){ echo "s...
asked by 04.04.2018 / 19:27
0
answers

Curl facebook cookie problem

I'm trying to get into facebook by pho using curl but I'm having the problem:    Cookies required Cookies are not enabled in your browser.   Please enable cookies in your browser preferences to continue. Pieceofcode:curl_setopt($ch,CURLO...
asked by 04.04.2018 / 22:55