need help with session access on a parent and child site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jawadakr
Forum Newbie
Posts: 1
Joined: Mon Jun 07, 2010 5:44 am

need help with session access on a parent and child site

Post 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
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

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

Post 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
Post Reply