Lamez Posted May 15, 2007 Share Posted May 15, 2007 I am getting this errors after a user logs in what do they mean, how can I fix em' Warning: setcookie() expects parameter 3 to be long, string given in /mounted-storage/home48c/sub007/sc33591-LWQU/lamezz.info/downloads/login/login.php on line 54 Welcome: test Continue to the members section. Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/ Share on other sites More sharing options...
phast1 Posted May 15, 2007 Share Posted May 15, 2007 It looks like the setcookie() function call has an invalid third paramter, which is the expire time.. Please post the portion of code around line 54 in the login.php file so that we can try to determine what the problem is.. Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253971 Share on other sites More sharing options...
Lamez Posted May 15, 2007 Author Share Posted May 15, 2007 Here it is: setcookie("username", "".$_POST['username']."", "TRUE"); Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253976 Share on other sites More sharing options...
ryeman98 Posted May 15, 2007 Share Posted May 15, 2007 I believe that on your last thread, you were told to take out the "TRUE" part completely. Have you tried that? Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253986 Share on other sites More sharing options...
phast1 Posted May 15, 2007 Share Posted May 15, 2007 Yeah, "TRUE" is definitely not a valid expire time.. Removing it completely would solve your error.. Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253994 Share on other sites More sharing options...
Lamez Posted May 15, 2007 Author Share Posted May 15, 2007 I believe that on your last thread, you were told to take out the "TRUE" part completely. Have you tried that? well, I tried , and I got a whole new error let me try again. Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253995 Share on other sites More sharing options...
ryeman98 Posted May 15, 2007 Share Posted May 15, 2007 Then take it out and post that error... Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-253998 Share on other sites More sharing options...
Lamez Posted May 15, 2007 Author Share Posted May 15, 2007 what would the code look like without the TRUE in it? here is my new error Parse error: syntax error, unexpected ')' in /mounted-storage/home48c/sub007/sc33591-LWQU/lamezz.info/downloads/login/login.php on line 54 Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-254004 Share on other sites More sharing options...
Lamez Posted May 15, 2007 Author Share Posted May 15, 2007 Fixed Quote Link to comment https://forums.phpfreaks.com/topic/51570-solved-errors/#findComment-254018 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.