faqts : Computers : Programming : Languages : PHP : Installation and Setup : Sessions & Cookies

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 2 people (0%) answered Yes
Recently 0 of 2 people (0%) answered Yes

Entry

i am not able retrieve php session variables, how do i get them to be used in my script

Oct 9th, 2006 10:23
Matthew Wilkinson, rahul rohilla, http://php.net/session


You need to add session_start() at the beginning of your script. You can
then set and retrieve session values by using the $_SESSION array. Any
variables in the $_SESSION array at the end of the script are stored in
the session. In the next script, just use $_SESSION['something'] to
access whatever you stored in that key.