Top "Cookies" questions

An HTTP cookie is a piece of data stored by the user's web browser.

Using CookieContainer with WebClient class

I've previously used a CookieContainer with HttpWebRequest and HttpWebResponse sessions, but now, I want to use it with a WebClient. …

c# cookies httpwebrequest webclient cookiecontainer
Can an AJAX response set a cookie?

Can an AJAX response set a cookie? If not, what is my alternative solution? Should I set it with Javascript …

ajax cookies
What is the best way to prevent session hijacking?

Specifically this is regarding when using a client session cookie to identify a session on the server. Is the best …

security session cookies
Do sessions really violate RESTfulness?

Is using sessions in a RESTful API really violating RESTfulness? I have seen many opinions going either direction, but I'm …

session rest cookies restful-authentication
How to expire a cookie in 30 minutes using jQuery?

How to Expire a Cookie in 30 min ? I am using a jQuery cookie. I am able to do something like …

javascript jquery cookies
How can I send cookies using PHP curl in addition to CURLOPT_COOKIEFILE?

I am scraping some content from a website after a form submission. The problem is that the script is failing …

php cookies curl setcookie
How to read a HttpOnly cookie using JavaScript

Is there any way to read a secure cookie with JavaScript? I tried to do it using document.cookie and …

javascript security cookies
How does cookie based authentication work?

Can someone give me a step by step description of how cookie based authentication works? I've never done anything involving …

authentication cookies browser
Why is it common to put CSRF prevention tokens in cookies?

I'm trying to understand the whole issue with CSRF and appropriate ways to prevent it. (Resources I've read, understand, and …

security cookies web csrf owasp
Django Cookies, how can I set them?

I have a web site which shows different content based on a location the visitor chooses. e.g: User enters …

django cookies