hey,
Im trying to use cookies for my login page but Im really lost. here is my code. how would i be able to check if cookies are working at all??
$employees_id = $res[ employees_id ];
tep_session_register('employees_id');
if ($HTTP_POST_VARS['setcookie'] == '1') {
setcookie('employees_username', $HTTP_POST_VARS['username'], time()+2592000);
setcookie('employees_password', $HTTP_POST_VARS['password'], time()+2592000);
} else {
setcookie('username', '');
setcookie('password', '');
}