PDA

View Full Version : Getting a cookie with a path set



javamann
17 Mar 2011, 9:02 PM
I am using Ext.util.Cookies.get('cookieName'); and this returning a null value. When I examine the Cookie (Chrome) it appears the Cookie I set on the server has a path other the '/'. Is there a way to get a cookie from a path other than '/'?
As a work around I can set the path of the cookie to '/' on the server but this is not ideal.

Thanks

-Pete

todic
18 Mar 2011, 8:31 AM
Hi,

You are supposed to access only cookies with path "/"( current domain). That's security measure.

Please have a look at http://stackoverflow.com/questions/2802760/is-it-possible-to-get-a-stored-cookies-path for more info.