Skip to main content
Filter by
Sorted by
Tagged with
1509 votes
9 answers
674k views

Are there any differences in using local storage to replace cookie functionality other than the obvious compatibility issues? I want to reduce load times on my websites by moving all cookies into ...
Gio Borje's user avatar
  • 21.2k
1184 votes
18 answers
1.2m views

I need to keep a session alive for 30 minutes and then destroy it.
Tom's user avatar
  • 34.5k
783 votes
4 answers
1.8m views

I'm trying to set a cookie depending on which CSS file I choose in my HTML. I have a form with a list of options, and different CSS files as values. When I choose a file, it should be saved to a ...
DrWooolie's user avatar
  • 8,105
610 votes
49 answers
1.4m views

I have a getter to get the value from a cookie. Now I have 2 cookies by the name shares= and by the name obligations= . I want to make this getter only to get the values from the obligations ...
user avatar
555 votes
4 answers
342k views

I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this,...
484 votes
10 answers
336k views

Due to weird domain/subdomain cookie issues that I'm getting, I'd like to know how browsers handle cookies. If they do it in different ways, it would also be nice to know the differences. In other ...
Vilx-'s user avatar
  • 107k
449 votes
28 answers
783k views

How do you delete all the cookies for the current domain using JavaScript?
polarbear's user avatar
  • 13.1k
398 votes
22 answers
246k views

I have two websites, example.com and anotherexample.net. On anotherexample.net/page.html I have IFRAME SRC="http://example.com/someform.asp". That iframe displays a form to submit to example....
383 votes
8 answers
241k views

I know cookie-based authentication. SSL and HttpOnly flags can be applied to protect cookie-based authentication from MITM and XSS. However, more special measures will be needed to apply in order to ...
Timespace's user avatar
  • 5,741
368 votes
18 answers
622k views

I have two webapps WebApp1 and WebApp2 in two different domains. I am setting a cookie in WebApp1 in the HttpResponse. How to read the same cookie from HttpRequest in WebApp2? I know it sounds weird ...
SundarJavaDeveloper's user avatar
357 votes
23 answers
391k views

How can I create and read a value from a cookie in JavaScript?
Venkatesh Appala's user avatar
354 votes
25 answers
810k views

When I want to remove a Cookie I try unset($_COOKIE['hello']); I see in my cookie browser from firefox that the cookie still exists. How can I really remove the cookie?
sanders's user avatar
  • 11k
330 votes
3 answers
248k views

What would be a step-by-step description of how cookie-based authentication work? I've never done anything involving either authentication or cookies. What does the browser need to do? What does the ...
Mastid's user avatar
  • 3,479
310 votes
26 answers
481k views

I must be missing some basic thing about cookies. On localhost, when I set a cookie on server side and specify the domain explicitly as localhost (or .localhost). the cookie does not seem to be ...
Jan Zich's user avatar
  • 15.4k
286 votes
16 answers
361k views

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am ...
Pim van der Heijden's user avatar
274 votes
8 answers
134k views

Does every web request send the browser's cookies? I'm not talking page views, but a request for an image, .js file, etc. Update If a web page has 50 elements, that is 50 requests. Why would it ...
mrblah's user avatar
  • 104k
269 votes
6 answers
159k views

I read some posts about "JWT vs Cookie" but they only made me more confused... I want some clarification, when people talking about "token-based authentication vs cookies", cookies here merely refer ...
watashiSHUN's user avatar
  • 10.7k
261 votes
9 answers
190k views

What is the difference between token authentication and authentication using cookies? I am trying to implement the Ember Auth Rails Demo but I do not understand the reasons behind using token ...
John's user avatar
  • 13.8k
247 votes
15 answers
394k views

Looking at the php documentation on setting a cookie I see that I can set an expiration date for the cookie. You can set the cookie to expire at the end of the browser session or at some time in the ...
brainimus's user avatar
  • 11.1k
241 votes
11 answers
375k views

Say I have a website called a.com, and when a specific page of this site is loaded, say page link, I like to set a cookie for another site called b.com, then redirect the user to b.com. I mean, on ...
Rasoul Zabihi's user avatar
231 votes
22 answers
249k views

I need to figure out a way uniquely identify each computer which visits the web site I am creating. Does anybody have any advice on how to achieve this? Because i want the solution to work on all ...
thatisvaliant's user avatar
218 votes
4 answers
709k views

Somebody help me. How to create, read and erase some cookies with jQuery ?
214 votes
5 answers
259k views

What is the difference between creating cookies on the server and on the client? Are these called server side cookies and client side cookies? Is there a way to create cookies that can only be read on ...
Rahul's user avatar
  • 2,731
208 votes
9 answers
471k views

How can I delete a specific cookie with the name roundcube_sessauth? Shouldn't the following: function del_cookie(name) { document.cookie = 'roundcube_sessauth' + '=; expires=Thu, 01-Jan-70 ...
Charlie's user avatar
  • 11.7k
202 votes
15 answers
102k views

According to EU Article 5(3) of the E-Privacy Directive (a.k.a 'The Cookie Laws'), web sites that target EU users have to gain opt-in consent from users before they set a cookie. See ICO Guidance I ...
JW.'s user avatar
  • 4,971

1
2 3 4 5
703