![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have the following code for my cookie, on the login page: [...] setcookie("acCookie",$HTTP_POST_VARS['UserName'],time() + 7200,"/"); setcookie("levelCookie",$row_rsLogin['UserAccess'],time() + 7200,"/"); [...] I would like the cookie to expire upon closing the browser....but it doesn't work. (php/MySQL) |
|
why why why???? thanks thanks thanks!!! |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
.oO(msa) I have the following code for my cookie, on the login page: [...] setcookie("acCookie",$HTTP_POST_VARS['UserName'],time() + 7200,"/"); setcookie("levelCookie",$row_rsLogin['UserAccess'],time() + 7200,"/"); [...] I would like the cookie to expire upon closing the browser....but it doesn't work. (php/MySQL) For session cookies don't set an expire time (it's currently set two hours = 7.200s ahead). The third parameter of setcookie() specifies the expire time, leave it empty or set it to 0 if you need to set the fourth parameter. why why why???? thanks thanks thanks!!! HTH HTH HTH Micha Micha Micha |
![]() |
| Thread Tools | |
| Display Modes | |
| |