allow for deleting a session
fixed a bug for when for json requst with not conten, the default content type is set to html/text