Grails - No Session if Additional Header is Present

Tag: grails , mobile , groovy , session-state Author: badboy123 Date: 2011-11-05

What is the best way to configure Grails so that sessions are not created for requests that come in with an additional specific HTTP header? These will be API requests coming in from mobile devices.

Would this save much resources if 75% of my users will be mobile?

Other Answer1

I don't think Grails really puts a lot into your session on creation, if anything at all. So, if your app doesn't put anything sizeable into the session, your gain is marginal.