corillo181 Posted April 20, 2006 Share Posted April 20, 2006 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? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 20, 2006 Share Posted April 20, 2006 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. Quote Link to comment Share on other sites More sharing options...
corillo181 Posted April 20, 2006 Author Share Posted April 20, 2006 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.