|
|
@ -6,7 +6,7 @@ function login(){
|
|
|
|
if( $result != "FALSE"){
|
|
|
|
if( $result != "FALSE"){
|
|
|
|
//handle successful login
|
|
|
|
//handle successful login
|
|
|
|
$_SESSION['user'] = $result['name'];
|
|
|
|
$_SESSION['user'] = $result['name'];
|
|
|
|
$_SESSION['id'] = WebUsers::getId($result['id']);
|
|
|
|
$_SESSION['id'] = WebUsers::getId($result['name']);
|
|
|
|
$_SESSION['ticket_user'] = Ticket_User::constr_ExternId($_SESSION['id']);
|
|
|
|
$_SESSION['ticket_user'] = Ticket_User::constr_ExternId($_SESSION['id']);
|
|
|
|
//go back to the index page.
|
|
|
|
//go back to the index page.
|
|
|
|
header( 'Location: index.php' );
|
|
|
|
header( 'Location: index.php' );
|
|
|
|