Posts: 10
Threads: 4
Joined: Sep 2019
Reputation:
0
As you know for API Rout session should not start... then how to disable session for specific Route?
Posts: 1,124
Threads: 49
Joined: Oct 2014
Reputation:
81
Well - the session is never started unless you specifically start it. That means you're in full control here. You could only start it when you actually need to grab something. You could have two different base controllers, one for API, one for the rest, and start it in the non-API controller. You could have a check in your base controller against the URI, etc.