Prevent CSRF exception from being raised by using a null_session