View Full Version : Dreamweaver auth login

01-15-2010, 06:25 PM
I have created a form with dreamweaver Login form PHP and what i am trying to do is create a Session Varible called $_session['valid_id'] which would equal a value form the database login of ID this is the Code i have tried.

<?php $_SESSION['valid_id'] = $LoginRS->id; ?>
if i place this code here:
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
it creates error and a seconed login server Behavior

01-16-2010, 12:06 AM
echo $LoginRS->id; ,see if it returning a value

01-17-2010, 02:12 PM
Thank you i figured it out...