• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.