Jump to content


Photo

[SOLVED] sessions question..


  • Please log in to reply
2 replies to this topic

#1 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 20 April 2006 - 03:04 PM

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?

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 April 2006 - 04:57 PM

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.

#3 corillo181

corillo181
  • Members
  • PipPipPip
  • Advanced Member
  • 896 posts

Posted 20 April 2006 - 08:29 PM

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..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users