Stop Rails from storing sessions during service calls -
Rail 2.3.18
Our main administrative site and our web services are in the same rail project . We've found that the session is being created by both administration web traffic and service calls.
Is there any way to stop session storage only for web service calls? They are not necessary and this is just a waste of space.
Thank you
session to disable session for some tasks and controllers Can use closed plugin
Install it as a gem gem 'session_off'
or as a plugin install script / plugin git: // github. Com / kares / session_off.git
You can disable session for all tasks by calling session: closed
in the respective controller:
class WebServiceController & lt; ApplicationController session: Off End
Comments
Post a Comment