Does it matter if session_start is in an included file or not?
session_start() trouble!
Moderator: General Moderators
-
sk8erh4x0r
- Forum Commoner
- Posts: 43
- Joined: Wed May 26, 2004 8:27 pm
session_start() trouble!
session_start(); is in a file named scripts.php which is included on every page of the site. I stay logged in on files in the root directory (ie. /index.php, /contact.php) but in subdirectories like /tutorials or /submit I am all the sudden logged out. 
Does it matter if session_start is in an included file or not?
Does it matter if session_start is in an included file or not?
-
sk8erh4x0r
- Forum Commoner
- Posts: 43
- Joined: Wed May 26, 2004 8:27 pm
No, it does not matter if session_start() is in an included file or not, and theda I don't think his web site is set up like that, he said he is including a file scripts.php that has session_start() at the beginning.
Are you getting any errors, sk8er? If not try putting error_reporting(E_ALL); at the top of tutorials/index.php, before you even try to include script.php, do you get any warnings, or notices? If so copy and paste them here so we can see them.
Last but not least, I'll need to see some code.
Are you getting any errors, sk8er? If not try putting error_reporting(E_ALL); at the top of tutorials/index.php, before you even try to include script.php, do you get any warnings, or notices? If so copy and paste them here so we can see them.
Last but not least, I'll need to see some code.
-
sk8erh4x0r
- Forum Commoner
- Posts: 43
- Joined: Wed May 26, 2004 8:27 pm