How to maintain session in my grails application. Here is my requirement.
- I have to generate session id (in server side) based on the user-name (which comes from client side while log-in).
- After log-in, the server should pass the session id to client and sets timer to validate the session.
- For every request, the client should pass the session id to server, so that the server is able to check whether the session is alive or not based on the timer.
- If the session is valid, the server should process the request and has to increment the timer.
- If the session in invalid, the request should not be processed by server.
Please let me know if you any idea/tutorial/suggestions.
Thanks in advance...