views:

13

answers:

0

I've got a site with a login-mechanism which generates a cookie when the user is logged in. When the user clicks on the logout button, the cookie gets deleted like this:

function logout(){
  document.cookie = 'SESSION=;path=/;expires=Thu, 01-Jan-70 00:00:01 GMT';
  location.reload(true);
}

This works on my testsystem in any browser I've tested (Firefox, IE, Safari, Opera, Chrome). However, if my client deploys this on his server, the cookie won't be deleted and I don't know why. He tested with Firefox and IE8. I suspect some problems with the domain where the cookie gets created, but I'm not sure about that. I know that my client works on some secured network and the server he deploys to is not the machine he's working on. Are there any common problems on that field that I might have run into? Because I'm not really sure where to start searching for the cause of the problem.