Add support for cookie based sessions