i have a folder /asd and there is two folders /userstuff and /juststuff ... the login page is in /asd/userstuff...when i set a cookie loggedin from there, then it is unobtainable from /asd/juststuff...what should i do ? i want to access these cookies from /asd/juststuff toooo
You just need to set the cookie path to be asd. Something like:
setcookie ("cookie_name", "some_value", "expires time", "/asd/");