[eluser]jayrulez[/eluser]
[quote author="bapobap" date="1244302549"]Hi there,
I changed the cookie domain to ".mydomain.com" to try and fix an issue with undefined offset errors filling up my logs. It fixed that problem because then people were not able to able to login using certain browsers.
So I've now reverted back however people still can't login as there must be some sort of weird cookie hanging around. Deleting cookies on my own computer fixes the problem but I can't put a notice on my site to say "hey everyone, delete your cookies".
Does anyone know what I could to delete the cookies for those who might be affected, and carry on as normal for everyone else?[/quote]
in your index page, have a check if the cookie is set(previous cookie name). like this
if(isset($_COOKIE['whatever the name was']))
{
unset($_COOKIE['whatever the name was']);
//or set the cookie again with a time of -1
}
or just unset($_COOKIE);
in your index
but you have to do it in a way so it doesn't affect the users that the problem has already been corrected for. you could do this like
if(!isset($_COOKIE['new cookie name']))
{
unset($_COOKIE);
}