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 7034029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:08:12+00:00 2026-05-28T01:08:12+00:00

I just wanted to know that whether the output of printing the session object

  • 0

I just wanted to know that whether the output of printing the session object like

System.out.println(sessiononject);

will return the creation time of the session. I’m storing the session object in a static hash map and getting it back from the map and when I’m printing it, I’m getting the created time of the session. But, I’m not getting the time always. Just check the following output while browsing the application in various system and browser.

{2F41393827EA02BB912CDCC194C42398.PicoEMS1=1326098069115,
46E427BAA0B42D8E1E27C533C32DB977.PicoEMS1=1325858091647,
4D4CF0A25E1A5F72AA45F5515C4FA819.PicoEMS1=1326100008712,
5D2A80DE7C8EEEA203EE0B1512F78829.PicoEMS1=1325856576256,
376D666C75324C1537A6B213252237EF.PicoEMS1=1325856598874,
9391A162E03ED4ED4E955C742D65A2A5.PicoEMS1=1326098775911,
5DCDF4A60B752961CBB19C0DB409F0D8.PicoEMS1=org.apache.catalina.session.StandardSessionFacade@78e2e186, AEA530F9F9AAC4B7E5DA8BC186E0DA27.PicoEMS1=1326090775861,
5059EA4503876B7090F860DCF656A7E2.PicoEMS1=1326090718239,
6D211D34CE2E868497A1FE5BA49EA099.PicoEMS1=org.apache.catalina.session.StandardSessionFacade@26948cb9, B131BA54A0ECB610C3A17474FD170136.PicoEMS1=1326097413641,
1F9114E0449141476DAD3414B1970D54.PicoEMS1=1326090779510,
5B088728E4D538322D467C8CD30DACFB.PicoEMS1=1326097184254,
DAA2BF5FBE5EC978515C54286D926821.PicoEMS1=1325857115881,
A9D8316862274DB662A3D667EB58B1D5.PicoEMS1=org.apache.catalina.session.StandardSessionFacade@3cff49ab, DC89F419C17A85C5C19199F7920F7DB7.PicoEMS1=1325858502804,
45993E1463023E4012F23502E65C7FAB.PicoEMS1=org.apache.catalina.session.StandardSessionFacade@e32dec9,
B22C74666E9C8FEF3032D7CFD3D082E9.PicoEMS1=1326099308589,
CA752CF89E312252EA9DE17E9F97DA02.PicoEMS1=1326089242002,
0BC1E77C07BB8FAE68C83EBC09A4D9AC.PicoEMS1=1325857788710,
564F44ADECF7E9E5B159413E6D887B9D.PicoEMS1=1325858173676,
640AC2C85C0769A43810A4CA7B259F9B.PicoEMS1=1326089213514,
B7EE7FA8EF8EE03E34577484A5EA139F.PicoEMS1=1326098769596,
A878787663A83AC6F1BC8E22D2CB70D5.PicoEMS1=1325857982977}

The above lines is the session objects stored in static hash map.
This is inconsistency to use the creation time for finding last access time.

  • 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-28T01:08:12+00:00Added an answer on May 28, 2026 at 1:08 am

    HttpSession is an interface, there is no specified behaviour for its toString method. Since you can’t count on the application server using any particular implementation of it at any given time or in any given version, depending on the output of its toString for your program’s correctness ia a bad idea! As you are observing, you’re seeing two different implementations of it in your Map.

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

Sidebar

Related Questions

We know that we can use a concept Java Package, but I just wanted
I don't know whether i make sense or not. But just wanted to now
I just wanted to know that how can I get the ID of <input
I just wanted to know that is there any performance difference between these two
Just wanted to know how i would replace sitename.com with sitename2.com whenever a user
Just wanted to know. Is it possible to highlight text in ElasticSearch on an
Just wanted to know something about signed vs unsigned interpretation. Am I right if
Just wanted to know if anyone is really using Objects and Collections in Oracle
Just wanted to know if there is a big chance to inject SQL While
Just wanted to know if overriding UITabBarController would get my app rejected? Is it

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.