Pauly
November 4th, 2004, 18:06
This maybe easier than it seems to me, but I'll ask any way. Excuse me if I lose any one through explaining, it's quite complicated from my perspective.
A project I am working on requires cookies, fullstop. If they don't have them turned on, is it possible to detect this and tell them to turn them on to view the site correctly, but if they are on instead of this little warning message, they are given the cookie information.
I assume it could be done with IF and ELSE, in theory something like so;
IF cookies enabled
{display information like this
(
Cookie Name: $name
Location: $loc
Deleting this cookie will reset site settings & user information.
)
}
ELSE
{display this message
(
Cookies are not enabled. This may effect site viewing. For more information on enabling cookies click here.
)
}
Obviously that's nonsense and we all which it was that easy. But is that possible, to grab the name of the cookie and the location it was saved?
My concern;
I have actually asked 2 or 3 developers to help out with the project on the coding side. Paul 2 (the_pm) has done a very nifty script for me that requires cookies and uses JavaScript I believe to set them. But the problem occurs (I think) because the other developer doesn't know JavaScript and will be setting the cookies using PHP, is there anyway of integrating them effectively? I don't really want to create multiple cookies, but rather only one.
A project I am working on requires cookies, fullstop. If they don't have them turned on, is it possible to detect this and tell them to turn them on to view the site correctly, but if they are on instead of this little warning message, they are given the cookie information.
I assume it could be done with IF and ELSE, in theory something like so;
IF cookies enabled
{display information like this
(
Cookie Name: $name
Location: $loc
Deleting this cookie will reset site settings & user information.
)
}
ELSE
{display this message
(
Cookies are not enabled. This may effect site viewing. For more information on enabling cookies click here.
)
}
Obviously that's nonsense and we all which it was that easy. But is that possible, to grab the name of the cookie and the location it was saved?
My concern;
I have actually asked 2 or 3 developers to help out with the project on the coding side. Paul 2 (the_pm) has done a very nifty script for me that requires cookies and uses JavaScript I believe to set them. But the problem occurs (I think) because the other developer doesn't know JavaScript and will be setting the cookies using PHP, is there anyway of integrating them effectively? I don't really want to create multiple cookies, but rather only one.