The session should not be affected by the directory its in. I'd make sure there's a session_start() at the top of every page. Also make sure you have the correct file and folder permissions. Also make sure that one of your scripts isn't unsetting the session value you are looking for. It's hard to say since you did not post that much information. Can you post the actual scripts?