Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Kurt A. Kaylor
July 16, 2004, 5:11 am
rate this thread
am running. The code to create the cookie is as follows, when I run it
on my localhost it works perfectly, however when uploaded it does not
work. I confirmed the variables ($username, $password) are fine, but
can't get it to work ! Someone please help me !
setcookie("sitedata_username", $username, time()+3600, "/",
setcookie("sitedata_password", $password, time()+3600, "/",
Re: Cookies in PHP
I see you are setting a domain for the cookie. Make sure it isn't a
security issue in your web browser (some browsers are configured not to
accept cookies for third-party domains).
Also, make sure the issue is not in reading the cookie. $_COOKIE variable
didn't exist in older PHP versions.
-- Álvaro G. Vicario - Burgos, Spain
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum