Dec 5, 2003 #1 bosky Programmer Joined Oct 30, 2003 Messages 15 Location IN Cookies ???? Hi there, I'm just not able to create the cookies. I'm using the following command to create the cookie setcookie("username",session_id()); is something wrong with this command what am i doing wrong? Please help!!!
Cookies ???? Hi there, I'm just not able to create the cookies. I'm using the following command to create the cookie setcookie("username",session_id()); is something wrong with this command what am i doing wrong? Please help!!!
Dec 5, 2003 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US It's not necessary to set a session cookie manually. When you invoke session_start(), if a session cookie does not exist, PHP sets one. How are you verifying that the cookie is not set? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
It's not necessary to set a session cookie manually. When you invoke session_start(), if a session cookie does not exist, PHP sets one. How are you verifying that the cookie is not set? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!