Jump to content

Archived

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

corillo181

[SOLVED] sessions question..

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
oh and how do i used that privte part becuase i put session private on my main page and it goes blank..

i wanted for when the user log in the login fields goes away, but it doesn't change the page..

Share this post


Link to post
Share on other sites

×

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.