Browser forgets about registered cookie after leaving domain

Posted by Sergej Andrejev on Stack Overflow See other posts from Stack Overflow or by Sergej Andrejev
Published on 2010-03-24T08:56:46Z Indexed on 2010/03/24 9:03 UTC
Read the original article Hit count: 166

Filed under:

I have following problem.

  1. I register a cookie Set-Cookie EhdSite_SessionId=b0ptrr45xgclea55kjqp2o45; path=/; HttpOnly

  2. Do something on the same host (user always sends cookie header) Cookie EhdSite_SessionId=b0ptrr45xgclea55kjqp2o45

  3. then I redirect user to other host

  4. After filling all the required data user went back to first host Here user doesn't send the cookie

Does that mean that without expiration date cookie is destroyed by browser not when closing browser but when leaving the domain

© Stack Overflow or respective owner

Related posts about http