View Full Version : setcookie not setting cookie...

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


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:


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

08-25-2007, 02: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.

08-25-2007, 02: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