Jump to content

[SOLVED] sessions question..


corillo181

Recommended Posts

lets say a user logs in to the site..
in every page i want a session to be i need to put session start and session arrays for all the in for mation i want the page to read..
or i can just make one page witha ll the sessions variable i want the server to look for and once is there i can use session_start() and call the include file?
Link to comment
https://forums.phpfreaks.com/topic/7955-solved-sessions-question/
Share on other sites

Evertime you uses session_start() you have to call your session variables out. You can just call the ones you want to be used. You dont have to inititate the variables either.

If you want to check to see if certain session variables are set on each page request you could create a file called session.php which checks whether certain session varables are set then just include that file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.