Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6470449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:06:47+00:00 2026-05-25T06:06:47+00:00

How to maintain session in my grails application. Here is my requirement. I have

  • 0

How to maintain session in my grails application. Here is my requirement.

  1. I have to generate session id (in server side) based on the user-name (which comes from client side while log-in).
  2. After log-in, the server should pass the session id to client and sets timer to validate the session.
  3. 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.
  4. If the session is valid, the server should process the request and has to increment the timer.
  5. 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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:06:48+00:00Added an answer on May 25, 2026 at 6:06 am

    This looks exactly how the http session behaves, so you have that functionality out of the box. Just use the session variable to access session attributes. (see here). And this question tells you about how to configure the timeout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of PHP server side scripts that maintain user session state
I have to maintain statistics based on session in my application. Problem is that
I am developing an Android application where I have to maintain session. There are
GOAL: Maintain session state between a PHP application and a Coldfusion application which together,
I need to maintain session information between REST calls to an Apache server. Not
I maintain an application which, during the course of two years, has constantly required
I want to maintain session on a windows application. How do I maintain the
in my pageload i have got the session[name] When i use this code to
I have been trying to maintain session vars between two subdomains and found it
I have used session to store some config setting in MVC3 application, in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.