fix problem when cookies expired

Signed-off-by: Roger Manich <roger.manich@gmail.com>