...

View Full Version : setcookie not setting cookie...



Boshi
08-25-2007, 02:51 AM
Hay, I tried using setcookie in my login form and it works perfectly in localhost, but not in any other webhost.



setcookie('userid',$userid,(time()+214647);
setcookie('userpassword',encrypt($password),(time()+214647));


That problem is fixed now, but the cookies are set to expire at the end of the session! I want them to last a while. I even tried:



setcookie('userid',$userid,8539214647);
setcookie('userpassword',encrypt($password),8539214647);


And it still sets the cookie for the end of the session, help please!

CFMaBiSmAd
08-25-2007, 03:04 AM
Check your web server log for errors and/or turn on full php error reporting in php.ini or a .htaccess file.

I suspect that output buffering is turned on in php.ini in the case where it works, but it is not on in the cases where it does not work.

Boshi
08-25-2007, 03:09 AM
There are no errors in the error log.

Also I'm getting the errors in another webhost not in localhost.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum