Maintain session in grails -


How to maintain a session in my grails application here is my requirement.

  1. I have to generate session ID (in the server side) based on the username (which comes from the client side in the log-in).
  2. For each request, the client should pass the session ID to the server so that the server is enabled to check whether the session is live or not based on the timer.
  3. If the session is valid, then the server should act on the request and increase the timer.
  4. If the session is invalid, the request should not be processed on the server.

    Please let me know if you have any ideas / tutorials / suggestions.

    Thank you in advance ...

    It looks exactly how http Session behaves, so you have out-of-box functionality. To use session attributes, simply use the session variable (). And tells you how to configure timeout.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -