Hello,
I think to have some problem because that code, that is done in order to decide if the page has to have inside the login form (-->user not yet logged) or not(-->user logged).
[PHP]
<?php
setcookie ("autorizzazion e", "", time()-60000);
//check if the user is logged yet
//include ("functions.php ");
if (empty($HTTP_CO OKIE_VARS)){
include "login.html ";
echo "2";
}else{
//defineaut();
echo "1";
}
?>
[/PHP]
when is executed runs always "1"...
It means that i have some cookie on my pc but i have deleted manually everyone, and set destroy cookie in line 2...I tried also with
[PHP]
if (isset($_COOKIE )){
[/PHP]
and
[PHP]
if (isset($_COOKIE['autorization'])){
[/PHP]
instead of line 5...Is it normal??
In another page i set the cookie in this way:
[PHP]
setcookie('auto rization','2');
[/PHP]
and it seems to be ok...Could someone please help me? (my server has PHP 5 and global var ON)
Thanks,
Kind Regards, luke14free
I think to have some problem because that code, that is done in order to decide if the page has to have inside the login form (-->user not yet logged) or not(-->user logged).
[PHP]
<?php
setcookie ("autorizzazion e", "", time()-60000);
//check if the user is logged yet
//include ("functions.php ");
if (empty($HTTP_CO OKIE_VARS)){
include "login.html ";
echo "2";
}else{
//defineaut();
echo "1";
}
?>
[/PHP]
when is executed runs always "1"...
It means that i have some cookie on my pc but i have deleted manually everyone, and set destroy cookie in line 2...I tried also with
[PHP]
if (isset($_COOKIE )){
[/PHP]
and
[PHP]
if (isset($_COOKIE['autorization'])){
[/PHP]
instead of line 5...Is it normal??
In another page i set the cookie in this way:
[PHP]
setcookie('auto rization','2');
[/PHP]
and it seems to be ok...Could someone please help me? (my server has PHP 5 and global var ON)
Thanks,
Kind Regards, luke14free
Comment