title: Prevent Sessions For Routes in Laravel (Custom on-demand session handling)
body: <p>I am building APIs for my Android app using laravel and default session driver set to REDIS. </p>
  
  <p>I found a good article here <a href="http://dor.ky/laravel-prevent-sessions-for-routes-via-a-filter/">http://dor.ky/laravel-prevent-sessions-for-routes-via-a-filter/</a> which sort of serves the purpose.</p>
  
  <p>However when ever I hit the url it also hits the redis and generates the key which is empty. Now I want avoid creating empty session keys in redis. Ideally it should not hit the redis How can I do that?</p>
  
  <p>Can we customise sessios in a way so that sessions are generated only for specific routes (or disable for specific routes)?</p>
  
  <p>I can explain more with specific use case, please let me know.</p>