I am using rails 5.1.5 in my service. I would like to log out a user from a controller method after some user action in the service. It shouldn't be a action on view like a redirect to a logout page. I tried to insert a separate line into the controller,
request.session.send (request.session.respond_to?(:destroy) ? :destroy : :clear)
and request.session[:cas ] was destroyed, but after, as I understood, there was a call to the CAS, and a new request.session[:cas ] one returned to the service with a new service ticket. Is it possible to refer to the gem to completely interrupt the user's session.Thanks in advance