Current time: 08-13-2020, 11:07 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookie Scoping
07-13-2010, 10:38 PM
Post: #4
RE: Cookie Scoping
Actually, the cookie path applies cookies to anything under the path so if a cookie is used at the top-level then even if your app doesn't use it the browser is sending cookies for requests for your static content.

For example, if you set a cookie to /foo

Then:

/foo/bar/some_static_file - would get the cookies
/static/otherfile - would not get the cookies

This is why it becomes problematic because usually you want tthe cookies to be available for your base page at / which means that it would get applied to everythiong on the domain.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Cookie Scoping - calumfodder - 07-13-2010, 07:53 PM
RE: Cookie Scoping - pmeenan - 07-13-2010, 09:01 PM
RE: Cookie Scoping - calumfodder - 07-13-2010, 10:43 PM
RE: Cookie Scoping - green-watch.org - 07-13-2010, 09:51 PM
RE: Cookie Scoping - pmeenan - 07-13-2010 10:38 PM
RE: Cookie Scoping - green-watch.org - 07-14-2010, 02:22 AM
RE: Cookie Scoping - pmeenan - 07-14-2010, 03:23 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)