Skip to content

Tag: cookies

Can’t delete cookie in express

Pretty simple. I set a cookie like so in my /user/login route: I’ve already set my secret for cookie-parser: Pretty basic stuff. Everything is working great insofar as I’m able to retrieve whatever I stored in the cookie: This middleware is called before anything else, so for the sake of the argum…

Remove cookie problems JS-COOKIE

JS Cookies remove cookie, undefined Hi Guys, I have trying to remove a cookie from a domain but I can’t, the console return undefined. When I log in the cookie is set up in .dev.books.com but after that the URL change to platform.dev.books.com and keep the same cookies. The name of the cookie I want to …

why is my JavaScript cookie only working on one page?

I have a JavaScript cookie question. I have used the example for writing and reading a JavaScript cookie from this site: http://www.tutorialspoint.com/javascript/javascript_cookies.htm. The cookie reads and writes just fine to the same page but once I go to another page with a similar form that it should work…

Display A Popup Only Once Per User

There have already been answers to this question but I am still unsure exactly how it works. I am using the following HTML in my footer.php: and the following Javascript: Everything works great, but I want to only show the pop up once per user (maybe using the cookie thing all the forum posts go on about) but…

Get a cookie value (javascript)

so I am new to Javascript and I am attempting to get a cookie value to keep track of a test. I have six questions and when a question is finished I increment “counter” up 1 value, this way if the user loses connection while on question four the counter would be at four. Then when they reconnect I …