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

  • SEARCH
  • Home
  • 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 8921253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:29:33+00:00 2026-06-15T06:29:33+00:00

How do I display a report showing all current seaside sessions along with their

  • 0

How do I display a report showing all current seaside sessions along with their expected expiry time?

self session application sessionsDo: [:each | 
html text: 'Session For ',((each properties values at: 1) username),' Expires At: '.
html render: (Time now addSeconds: (each application cache expiryPolicy timeout)).
html break].

This, however, shows the wrong results in that it shows that all sessions expire at the same time, which is 600 seconds from Time now. I can’t find another way to get at ‘time remaining’.

WWLD? (What would Lukas do)?

KR
Dusty

  • 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-06-15T06:29:34+00:00Added an answer on June 15, 2026 at 6:29 am

    The following code should do it:

    WAApplication allInstances do: [ :application |
       application keysAndHandlersDo: [ :key :session |
          | policy table |
          policy := application cache expiryPolicy.
          table := policy instVarNamed: 'lastAccessTable'.
          Transcript 
            show: session; show: ' expires in '; 
            show: policy timeout - (Time totalSeconds - (table at: key));
            show: ' seconds'; cr ] ]
    

    Note that the above code accesses internal data structures that might change in the future. Also you might need to add additional checks to make it work with your setup.

    Also note that you might get negative seconds. This means that the session is supposed to disappear, but it hasn’t been reaped yet.

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

Sidebar

Related Questions

I have this problem having to display my jasper report on my grails application.
I'm using the web browser control in an application to display a report. The
I have one master report with sub report. in master report display single value
I have a report in which I want to display value of 2 engineers
how can I display data fetched from several rows on a crystal report. Im
I am novice with SSRS. I have a report which should display 60 months
I want to display a number in a textbox within an excel form. report,
I am developing an application for showing the filesystem contents . I have two
I have a winforms application, when a user runs a report there may be
I have the following code, which is meant to display a report of the

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.