I have a problem with a login on my site. The script starts session and login works, sets session id and i can return that and echo it in variable, but when i navigate to a different file on my server, even one in the same directory, it says i'm not logged in.
If anyone has any idea for me it is much appreciated.
11-23-2012, 12:43 AM
to use session you must start it in every file where the session is used, or you can simply make a library file containing common used stuff and include it in a the pages.
so add sesstion_start(); in the second file