Version of script:2.1
Hosting company: U of M academic department - I'm the sys admin
URL of phpinfo.php: http://slc-admin3.scilabs.lsa.umich.edu ... myinfo.php
URL of session_test.php:
http://slc-admin3.scilabs.lsa.umich.edu ... n_test.php
What terms did you try when SEARCHING for a solution:
in forum: undefined index php error remember_user
Google: undefined index php error
Write your message below:
Found this by googling:Undefined index: remember_user in /hesk/admin/index.php on line 137
So is a $_POST or another variable not defined correctly?
Here's the portion of the code that's being complained about:
Code: Select all
/* Remember username? */
if ($hesk_settings['autologin'] && $_POST['remember_user']=='AUTOLOGIN')
{
setcookie('hesk_username', "$user", strtotime('+1 year'));
setcookie('hesk_p', "$pass_enc", strtotime('+1 year'));
}
elseif ($_POST['remember_user']=='JUSTUSER')
{
setcookie('hesk_username', "$user", strtotime('+1 year'));
setcookie('hesk_p', '');
}
else
{
// Expire cookie if set otherwise
setcookie('hesk_username', '');
setcookie('hesk_p', '');
}