|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
setcookie error!
setcookie("level", $level, "login", $loggedin);
Im getting level from the database and its ok... im setting $loggedin to ja and it works if I remove "login", $loggedin); why? The errormessage is: Warning: setcookie() expects parameter 3 to be long, string given in F:\apache\Apache2\htdocs\hideout2\check_login.php on line 20 and line 20: setcookie("level", $level, "login", $loggedin); PLZ HELP! Best Regards LatisZM |
|
#2
|
|||
|
|||
|
setcookie() syntax:
boolean setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]] ) Your third parameter must be a timestamp that indicates when the cookie will expire. It appears that you want to set 2 cookies, if that is the case you would call setcookie twice PHP Code:
Last edited by Jeb. : December 13th, 2002 at 06:13 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > setcookie error! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|