Cookie Law, Cookie Setter & Getter
I am currently coding a custom cookie law solution for several websites. I am trying to make the solution/plugin as much of an 'all in one solution' as possible with the code being
Solution 1:
as Alex Wayne stated as comment to your question, cookies are set before you even see the <html>
tag coming into your browser.
http goes like this:
HTTP/1.1 200 OK
Server: Nginx
Content-Length: x (size of the following content)
Content-Type: text/html (this is what identifies it as html)
Set-Cookie: foo=bar; expires=Tue, 4-Dec-2012 19:30:42 GMT; Max-Age=2592000; Path=/; Version="1"
<!DOCTYPE html><html>
...
what you could do, and must do to perform such an action is to set a "do not track me" session cookie that tells the server to not put any cookies onto the served requests.
another way could be to have a get variable in the address bar that tells the server to not set track cookies.
thats what cookies are for actually.
Post a Comment for "Cookie Law, Cookie Setter & Getter"