No, sessions are not the same as your database. To use variables in a session you'll need to explicitly add the variable to the session itself, like this:
On another page, you can then do this (again, you need to start the session as above):
If you have a customer name saved in the database, you must first pull the name out of the database, then store it in a session.
Quote:
Originally Posted by craigfarrall
Ok so if I have a customer first name saved in the db as 'fname' then I can use:
Then I can echo that out later to show the fname?
|