Results 1 to 2 of 2

Thread: when grails create new http session?

  1. #1
    Join Date
    May 2008
    Posts
    227

    Default 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?
    thanks
    Joe

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •