How to prevent from starting session for specific route? |
As you know for API Rout session should not start... then how to disable session for specific Route?
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.
|
Welcome Guest, Not a member yet? Register Sign In |