Sessions seem like voodoo at first, but, once you understand what's really going on, it's actually not that complicated. Here are some links to check out:
http://www.zend.com/zend/spotlight/sessionauth7may.php http://www.free2code.net/tutorials/programming/php/4/sessions.php http://www.devshed.com/Server_Side/PHP/Sessions http://www.phpbuilder.com/columns/index.php3?cat=6&subcat=36 Sessions are tracked by your server in little text files with names like sess-ac765JB84Ept932KCc9w0L9374. Each user to your site has a custom session set up for them when you issue a session_start() in PHP. The name of this session file is either stored in a Cookie (if the user has cookies enabled) or is passed from page to page on the URL (which makes the URLS long and ugly). Using PHP's built in session functions, you can store data in those server session files just by setting variables within the $_SESSION[] array, like this: session_start(); $_SESSION['username'] = 'Bob'; $_SESSION['accesslevel'] = 2; Because the session file follows the user around from page to page, you can access the above data within your PHP scripts at any time... session_start(); echo "Hi there ".$_SESSION['username'].", welcome back!"; That's a very brief overview. The above links provide better explanations. Monty > From: [EMAIL PROTECTED] (Daniel J. Rychlik) > Newsgroups: php.general > Date: Thu, 5 Jun 2003 16:19:04 -0500 > To: <[EMAIL PROTECTED]> > Subject: session_start questions. > > Questions, Questions,.... Questions. > > Where do I start in understanding how this function works. Ive read the > document multiple times, and I am having a bit of trouble figuring out how > this function works. I know that you can take session data and hold it > somewhere for a user and use that data throughout php web pages. I am > wandering, where is this data held and how to do you reference it ? Is their > a more detailed explanantion of session's ? If their is not, once I get this, > I will write one for people like me. You know, .... "Sessions for Dummies" > ;o) > > Never the less, how do you set a session name for a specific user and hold > that data for processing? Is this magic from somewhere or do you specifically > name a session for every user ? What about security implications ? I will be > running all my forms through secured protocol so hopefully their wont be any > hijacking going on... > > Sorry for being a pain. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php