use session in another directory folder...

Ask about a PHP problem here.
Post Reply
User avatar
louiegiezer
Posts: 57
Joined: Fri Oct 21, 2011 11:31 am
Contact:

use session in another directory folder...

Post by louiegiezer »

i have a folder let say... folder1 which is the root folder, then folder 2 inside of folder1... let example i have a session activty in folder 2.... how can i put the session of folder 2 in outside of that folder... and use it to folder 3.... can u get it guys?... i try to put session_start(); at very beginning of pages..... but the data is undefined...
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: use session in another directory folder...

Post by Temor »

I'm sorry but I have no idea what you're trying to do. Instead of calling them Folder1,2 and 3, give them a real name.
ScTech
Posts: 92
Joined: Sat Aug 24, 2013 8:40 pm

Re: use session in another directory folder...

Post by ScTech »

Sessions should be global unless you're setting them otherwise upon assigning them.
<?php while(!$succeed = try()); ?>
Post Reply