Welcome Guest, Not a member yet? Register   Sign In
How to prevent from starting session for specific route?
#1

As you know for API Rout session should not start... then how to disable session for specific Route?
Reply
#2

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB