set context.session in set_application_context