Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gav (2710)

gav
  (email not shown publicly)
http://www.estey.com/
AOL IM: flufflegavin (Add Buddy, Send Message)

Hacker in NYC.

Journal of gav (2710)

Tuesday August 24, 2004
01:28 PM

Cookies

[ #20544 ]

Cookies are yummy, especially chocolate chip ones, however the sort of cookies that web browsers like to eat are horrible things that cause me indigestion.

A client was reporting problems with cookies so I started poking around. Turning my settings on Firefox to "ask" I keep getting the following warning:

The site www.example.com wants to modify an existing cookie.

Except it wasn't modifying the cookie. It was just sending the same data. Ok, no problem we'll fix things so that we don't send a cookie header if it hasn't changed.

Then I spot a certificate error. Somebody is linking to https://example.com when the certificate is for www.example.com. Fine, I'll just add a mod_rewrite rule:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^/(.*)       http://www.example.com/$1 [L,R]

Now I hear that linking from an affilates site in Internet Explorer is giving a message saying that the user hasn't got cookies turned on. It seems that everything works fine unless the page is framed, which for some reason causes IE to reject the cookie. Arrrgh.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.