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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:54:07+00:00 2026-06-18T05:54:07+00:00

Why session is lost or ended when cache is cleared. While session is mentioned

  • 0

Why session is lost or ended when cache is cleared. While session is mentioned on server. I am java developer and I got session from HttpServletRequest object.

We manage the session on server side. Then how it is related with browser and client? Why our website is logged out when cache is cleared?

I tried it with my gmail account. When i close browser and again open gmail or when i clear cache it shows me logged out. I did google about but could not got satisfying answer. can anybody clear it?

  • 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-18T05:54:08+00:00Added an answer on June 18, 2026 at 5:54 am

    Your Session object on server is just representation. Session information are maintained by cookies in browser by default, with cookie named JSESSIONID. You can find out more here, see the answer from BalusC.

    In case when cookies are disabled on browser JSESSIONID must be appended as parameter to URL. This means that in case of redirection you must call HttpServletResponse#encodeRedirectURL or use c:url tag for links in your page.

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

Sidebar

Related Questions

I ran a SQL Delete from a SQL Developer session and the delete was
Every time I build my web application, my session variables are lost from before
Webserver setup: nginx / thin / ruby-sinatra I use session object from ruby to
session.createQuery(Select attribute from GoodsSection tgs + join gs.ascendants ags join ags.attributes attribute + where
During Session Start, one has access to the Request object. How about Session End,
Can I preserve object across actions in Struts2 without using session? I'm working on
When I use PHP header redirection, all session variables are lost... Some people say
Possible Duplicate: Session variable is lost on RedirectToAction in IE I'm using MVC3 and
I am a bit lost when it comes to retrieving results from the database.
In my classic ASP application, the ASP session ID related cookie gets lost when

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.