Hi Everyone. I was wandering if anyone knew hot to save a variable in a session?
Thanks for all of your help
Session
Moderator: General Moderators
- moiseszaragoza
- Forum Commoner
- Posts: 87
- Joined: Sun Oct 03, 2004 4:04 pm
- Location: Ft lauderdale
- Contact:
session_start() does what it says on the tin. You must call session_start() before any browser output.
Next, just declare session keys and values:
Next, just declare session keys and values:
Code: Select all
$_SESSION['foo'] = 'bar';