Checking cookie behavior by attributes 'secure' and 'httponly'.