Added suport for CSRF protection, session addition, etc