davidgagne.net

  • About
  • Archives
  • Twitter
  • Facebook
  • bartender.live
  • GitHub
  • LinkedIn

Cookies

December 5th, 2002 @ 8:37 pm PST

It just took me two hours of programming and slamming my head against the desk to realize that Cookies get saved according to the exact URL of the site. I kept trying to delete the cookies of domain.com when I needed to delete the cookies of www.domain.com.

That is annoying.

More posts tagged:
cookies / Programming / web design

More posts categorized:
technology Web Design

More posts from:
December 2002 / 2002

Post navigation

Previous Post
Previous Post Gregg Easterbrook
Next Post
Next Post 3-Column Layout

One Response to “Cookies”

  1. December 7th, 2002 @ 10:50 am
    Adam Kalsey

    I’m sure you realize this, but that’s on purpose. domain.com and http://www.domain.com are not neccessarily the same site. “www” is just another hostname as far as the browser is concerned. You wouldn’t want the cookies for intranet.domain.com and http://www.domain.com to intermingle, so cookies set for a hostname are specific to that hostname.

    However, if you set the cookie on domain.com, you’ll be able to read it from http://www.domain.com, foo.domain.com and any other domain.com hostname.

Comments Closed

New comments are disabled on this post.

Search


Switch to FreshBooks

Switch to FreshBooks

I switched from QuickBooks to FreshBooks in 2015 and am so glad I did. Everything about their billing system is easier.

  • Take Control of Your Invoices

© David Vincent Gagne. All rights reserved. Custom WordPress Theme by Jacket Industries.