I'm trying to finish up a login script, but cookies are not setting. I used setcookie() in the top of the page hader, but it don't seem to be working. I made a test page and did if( isset(cookiename) ) and logged in and clicked on a link to that page, and it didn't work. Anyone know whats wrong with this? I have setcookie() in my page header before anything else.
Here's what I have for setting cookies:
Here's what I have for setting cookies:
PHP Code:
setcookie( "portal", "myportal", time()+3600, "/", "$SERVER_NAME", 0 );
Comment