I just re-installed XAMPP and I'm getting an error that I've never gotten before.

Notice: Undefined index: username in C:\xampp\htdocs\acc_terminator\unicode.php on line 3

Notice: Undefined index: password in C:\xampp\htdocs\acc_terminator\unicode.php on line 4

Notice: Undefined index: account_level in C:\xampp\htdocs\acc_terminator\unicode.php on line 5

Those lines are:
$xusername = $_SESSION;
$xpassword = $_SESSION;
$xaccount_level = $_SESSION;

When you did

session_start();
/*did you set the variables "
$_SESSION['username'], $_SESSION['password'] and $_SESSION['account_level']*/

???

That's the error you're getting. those variables inside the $_SESSION array haven't been initialized.

Regards.

edit: I'm not sure but, shouldn't it be:
$_SESSION = $xusername;
$_SESSION = $xpassword;
$_SESSION = $xaccount_level;
?

When you did

session_start();
/*did you set the variables "
$_SESSION['username'], $_SESSION['password'] and $_SESSION['account_level']*/

???

That's the error you're getting. those variables inside the $_SESSION array haven't been initialized.

Regards.

edit: I'm not sure but, shouldn't it be:
$_SESSION = $xusername;
$_SESSION = $xpassword;
$_SESSION = $xaccount_level;
?

In my other php files i will use $xusername instead of $_SESSION.
The code looked like this before, no problems..

Member Avatar for diafol

Perhaps it would help if you posted your code. The whole page if possible.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.