PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
is there something with the way it is written. It seems that after I close out of IE or Firefox. The cookie is lost or is reset. Any ideas.
Yeah, I have an idea. You are setting a browser session lifetime cookie. That means that the cookie will stay alive as long as the browser window is open. Once the browser closes, all browser session cookies get canned by the browser.
Read the manual on setcookie(). There is a pretty good amount of information about how to set cookies and cookie expiry times.