Re: [PHP] help needed with session variables

2003-01-28 Thread 1LT John W. Holmes
> Isnt it better to do it in this way? Better than what? > session_start(); > session_register('USER'); > > $USER['valid'] = true; > $USER['firstname'] = $first_name; > $USER['lastname'] = $last_name; > > Then I really know what I am doing! It's personal preference... whatever you understand. I

Re: [PHP] help needed with session variables

2003-01-28 Thread Maxim Maletsky
pass it one value at the time: session_register("valid_user"); session_register("firstname"); session_register("lastname"); Another recommended method is to use superglobal variable $_SESSION. You can then simply do: $_SESSION['valid_user'] = $login; $_SESSION['firstname'] = $first_name; $_SESS

Fw: [PHP] help needed with session variables

2003-01-28 Thread Sascha Braun
- From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 11:02 PM Subject: Re: [PHP] help needed with session variables > Are you sure $first_name and $last_na

Re: [PHP] help needed with session variables

2003-01-27 Thread 1LT John W. Holmes
Are you sure $first_name and $last_name have a value? Double check... ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 4:44 PM Subject: [PHP] help needed with session

[PHP] help needed with session variables

2003-01-27 Thread Pushpinder Singh Garcha
hello, I am making use of sessions in my PHp/MySQL Database application. When the user is successfully authenticated against the database, a session is created in following manner: session_register("valid_user","firstname","lastname"); $valid_user = $login; $firstname = $first_name;