Most voted "cookies" questions
Cookie, connection testimony, or simply testimony is a group of data exchanged between the browser and the page server, placed in a text file (file) created on the user’s computer. Its main function is to maintain HTTP session persistence.
Learn more…173 questions
Sort by count of
-
0
votes2
answers72
viewsContrast application on the page via 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");…
javascript html logic cookies accessibilityasked 6 years, 4 months ago Recurso de Acessibilidade 31 -
0
votes1
answer21
viewsHow to share data from a web application?
I have the following problem, I have an application made in (HTML, CSS JS, Jquey) another application is in Reactjs, in this first application it is hosted and in a different domain for example…
-
0
votes1
answer358
viewsPHP - Create cookie with multiple values
Good Afternoon, I am creating a script that will add cookies to the user account. The problem is... I want to add several cookies for example: If the user clicks add to the advertisement 1 it will…
-
0
votes1
answer95
viewsSet, pick up and check a Cookie after a video (Youtube API) finishes - Javascript
I need the browser to understand when a user has seen a Youtube video (Youtube API) until the end and record this, but all client-side. But even though I already have the function that recognizes…
-
0
votes2
answers267
viewsHow to know if a person has clicked on a DIV or not
I have an ad and I want to know if the person has already clicked on the ad in the last 2 days. If it has already clicked, it does not appear but, if it has not clicked, it still appears. Something…
-
0
votes2
answers196
viewsCapture set cookie
I am developing a system and my idea is to use cookies to save the data (at least the login). I have the login page (login.php), and a Javascript sending the data via AJAX from the login page to PHP…
-
0
votes1
answer34
viewsList of JS objects in the C# MVC Controller does not appear in the Request.Cookies
I’m putting the following Cookie: document.cookie = "Teste=" + '[{"Id":20,"Nome":"Prato Feito","Valor":12.5,"Quantidade":1,"Imagem":"/images/ImgEmpty/noImg.jpg","Descricao":"Batata Palha, Cebola,…
-
0
votes0
answers87
viewsCookies not saved - Javascript
I am trying to save a user’s name through cookies, but for some reason these cookies are not saved. I am using tutorial of W3schools, but even creating my code like theirs, it doesn’t work. Here is…
-
0
votes0
answers124
viewsHow to use cookies to authenticate in an API?
I have a problem to authenticate in an API, it generates a cookie after logging in with user and password, soon after, to perform a GET I need to send the generated cookie. Explaining in detail: To…
-
0
votes0
answers21
viewsSSO using Identity single login for various applications accessing the same database
Hi, hello, introduction: I have been trying to understand, I believe that the functionality of cookies may be the best alternative to help my need to log into only one web page and redirect to…
asp.net-core asp.net-web-api cookies asp.net-identity thatasked 4 years, 2 months ago Guilherme Ferreira 1 -
-1
votes1
answer376
viewsHow to block login on 2 devices?
I am developing a PHP application where the user can stay logged in even after signing out, using cookies. However, the user cannot stay connected to 2 devices simultaneously. More specifically,…
-
-1
votes2
answers125
viewsLogin
I wish only I had access to dashboard of my page (http://hugovales.esy.es/singin), I created a login page but I don’t know how to only allow my access. I would like to use a COOKIE for this, created…
-
-1
votes1
answer48
viewsStorage of Cookies and Requests with Cookies
Page cookies are sent to the server in all requests or only when it is intentionally sent through javascript? The localStorage is stored in the browser cache, and the cookie? It is stored in the…
-
-1
votes1
answer122
viewsHow do I delete cookies on Node.js when the user leaves the site?
I am setting a cookie in Node.js when the user chooses the language: res.cookie('lang', req.body.lang) But I wanted to delete the cookie when it closes the site, so that when it comes back the…
-
-1
votes1
answer32
viewsHow to set SSL in the cookie and display in the browser?
My site on site uses SSL, charge by https://, then, it should set the SSL protocol, my doubt is why when accessed by Chrome console, in Application > Storage > Cookies, where has the cookie,…
-
-1
votes1
answer35
viewsI need help, I am using Node and Request Form to do Scraping
I’m trying to develop an application to take data from a particular site and send it to the database. It would be simple if you didn’t have to request to access this data. As I’m beginning, I may be…
-
-1
votes2
answers65
viewsWhy do I get a blank page instead of redirecting like this in the command (header: Location)?
Good evening guys, I recently took a PHP course and decided to venture a little creating a login system with $_COOKIE. When I manually set the variable, I can validate the login, but when I pass the…
-
-1
votes2
answers27
viewsSame Cookie Shopping Cart - I can’t detect the error in the code
I’m testing a shopping cart... and I’m storing the cart items in the same cookie, but I am unable to detect the problem. I am recording the cart in a 2-dimensional array of 3 fixed items as value in…
-
-2
votes0
answers32
viewsSetting a Session Life in PHP
I’m trying to define the lifespan of my sessions, but nothing I’ve seen so far has worked. I set the time of 1 minute and did several tests to see if it works: #Teste 1 - Setei o cache para 1 minuto…
-
-2
votes1
answer88
viewsconst returns Undefined when using the getServerSideProps method of Next.js
Hello, I am using React with Next.js and using the native Next.js method, getServerSideProps to retrieve browser cookies. It turns out that the breakdown works for the first const, but not for the…
-
-3
votes1
answer153
viewsKeep div hidden after a refresh
Speak, people! Beauty? I’m in need of help :/ I don’t understand anything about JS and I need my div "#custom-social-Proof" to appear only once for the user who enters my site. If he re-load…
-
-4
votes1
answer114
viewscookie manipulation
Good morning Personal, I have a company website, and my task is to do Translate. It was requested to be in javascript and so it was done. So when I click on the flag, and select the language, the…
-
-4
votes2
answers328
viewsDo you know about cookies?
I was looking for more knowledge about cookies on youtube and only found video in English, but what’s the big deal? I don’t speak English! However I was able to understand that cookies work in this…