|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
cookie problem
Okay I am using the membership system that was put on devarticles a while back, the one that ben rowe wrote. But for some reason the cookie is not being created right, I think, or at least not being checked right. My webpage won't load until I delete the cookie. Inside my folder, with the other cookies, they look like this:
cookie:name@www.stuff.com my cookie looks like this: prp/ (prp is the name of my site) So what's wrong? here is the code that makes the cookie: PHP Code:
Is this the problem, does anyone know? I also had a problem where my front page that was checking for the cookies was sending a wrong variable to the login page, but I fixed that. I think it's jsut having a problem reading the cookie... Okay thanks you guys ah I'll attach my other stuff so you won't have to ask:
__________________
hey it's the CHARKING |
|
#2
|
||||
|
||||
|
Are you first checking to see if the cookie already exists? If not, it's possible that you're overwriting the old cookie with a new session_id value, which is associated with no data.
|
|
#3
|
|||
|
|||
|
this does it
yah i check with this
PHP Code:
login does this: PHP Code:
So yah it checks for it, and i know its not replacing it... it's jsut acting as though it's stuck in a loop, but I don't know why... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > cookie problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|