|
|
Or, use your gamerDNA username: (more...)
| ||||||
| |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
| | #1 (permalink) |
| Registered User Join Date: May 2003
Posts: 313
+9 Internets | PHP + Cookies Help! I'm starting to teach myself some PHP/cookies/mysql fun stuff and I'm having some trouble. I have this site that requires the user to log in using mod_rewrite. When the PHP login script runs, I added a part where it sets a cookie containing the username, then it starts a session and redirects the browser to the main page after login. On this main page, I'm trying to retrieve this cookie containing the username and output it, but I can't seem to retrieve it. The cookie exists, I can see it in the temporary internet files folder and it does contain the login username. When I checked isset() on the cookie, it failed. When I change my script to print_r($_COOKIE) I see a few other cookies but the cookie I set during login doesn't show up in there (but it's still visible in the TIF folder). Any ideas? Google searches aren't turning up any answers to this problem. Thanks. edit- btw my output code to view the cookie is simply: echo $_COOKIE['cookiename']; Last edited by Sabolin : 12-28-2007 at 09:40 AM. |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |