Questions tagged as 'cookies'

1
answer

Function with cookies in PHP

I need a php function that checks if the user has already accessed such a file, if yes, open X javascript file, if not accessed, open another javascript file. Example: 1st access = open test.js 2 ° or more hits = open ola.js     
asked by 05.01.2018 / 01:56
1
answer

Xamarin.Forms ios WebViewRenderer sharing Cookies

I'm using a WebViewRenderer to setup the cookie policy and also to share cookies from a login request from an HTTPClient. It turns out that as much as I give the set:   var cookieJar = NSHttpCookieStorage.SharedStorage; cookieJar.AcceptPol...
asked by 23.04.2017 / 00:39
1
answer

Cookies do not work

Hello folks a friend here in the forum helped me make a button and I thank him so much, it worked perfectly. But I failed to put cookies and I'm not understanding where I'm wrong (I was following a video on youtube to do it) <!DOCTYPE h...
asked by 07.07.2016 / 22:26
1
answer

How to get multiple data from a page and display separately with AJAX

I have a program where he creates cookies with the data that the user typed in the <input> fields. This all through AJAX. So far no problems, but in this file I make the request, it returns me the data of the cookies created. What I...
asked by 29.08.2014 / 20:33
2
answers

Capture cookie set

I'm developing a system and my idea is to use cookies to save the data (at least login). I have the login page (login.php), and a JavaScript sending the AJAX data from the login page to PHP (data.php). In PHP, it calls the Login met...
asked by 28.12.2018 / 17:33
1
answer

How to retrieve content from a cookie

How do I retrieve content from a cookie, this cookie has the material ID that will be requested and the amount, which I need to retrieve to insert into the database. I've looked a lot on the internet and have not figured it out yet. It follows t...
asked by 30.09.2014 / 19:26
1
answer

Check if cookie exists with JavaScript

I have a cookie set with javascript, I created it like this: document.cookie='gravado=sim' I do not know how to check if it exists. I need to do a check because if it does not exist, I'll redirect to another page, I also need to know how I...
asked by 19.07.2018 / 09:45
1
answer

How to hide the cookies.txt from curl

Ihaveacodeinphpthatmakesarequestwithcurlonapage,howeveritsavesthecookiesinatextfilecookies.txt,andanyonecanhaveaccesstothisfileinadirectlink" www.mysite.com .com.br / cookies.txt "I want to know how to hide this, because the security of my app...
asked by 31.10.2017 / 15:42
1
answer

Problem with cookies in php

I'm trying to generate a system that records the person's email in a cookie so that he can add a list of properties of a site in the database and when he loads the site through his email pulls the list of favorite properties. p> I made a simpl...
asked by 24.04.2017 / 23:53
1
answer

Problems with Login Cookies

In the login page the user sends the form with his login data, registers the data in cookies and redirects to another page. But I am suffering problem if the user logs out, I wanted to delete the cookies, in the login page I have a verification...
asked by 15.04.2017 / 23:26