Announcement Announcement Module
No announcement yet.
when grails create new http session? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • when grails create new http session?

    Hi all
    my application contain two parts:
    1- a normal site
    2- a web service implemented using controller class to export json based on a REST api

    the question is , how i disable session creation when a user access the second part(the web service)
    i expect the REST api to be of high traffic and i do not want grails to create http session for each user, it is not necessary, and will consume a lot of memory

    so how can i disable session creation? or generally when grails sessions are created?

  • #2
    As far as I'm aware, an HTTP session will only be created if you access the session from within the request. Are you seeing different behaviour?