Page 1 of 1

need help with session access on a parent and child site

Posted: Mon Jun 07, 2010 5:48 am
by jawadakr
hi

i am working on a site and the functionality requires me to add a community site as well so i add a script in a sub folder to access it . but now when i logged in from the sub directory site i am unable to get any cookies or any session information on the root directory . any idea about this one or any body implement the same scenario.

thanks and regards

jawad

Re: need help with session access on a parent and child site

Posted: Mon Jun 07, 2010 9:59 am
by Jonah Bron
Take a look at the fourth argument in the setcookie function in the manual.

http://us3.php.net/manual/en/function.setcookie.php