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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:11:37+00:00 2026-05-27T08:11:37+00:00

I am using tomcat as my webserver. I hit some url in IE and

  • 0

I am using tomcat as my webserver. I hit some url in IE and put some object in HttpSession for that request.

Now my questions:

  1. If I close the browser and and hit the url in new browser, will the object I earlier put in session will be available?

  2. If I don’t close the browser and and hit the url in a new tab/window, will the object i earlier put in session will be available?

The HttpSession javadoc says the following:

Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.

As per my understanding here term “user” means the “browser”. As soon as we open a new browser, then Tomcat/any webserver treats it as a new user. Is this correct? Does Tomcat achieve it using cookies or rewriting URLs?

The javadoc also says:

Session information is scoped only to the current web application (ServletContext).

If that’s is the case, any object we set in session should be visible to all user request even firing from different machines as there is servlet context per webserver. But this is true in case of application scope not in session scope. I did not get what it is trying to say here.

  • 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-27T08:11:37+00:00Added an answer on May 27, 2026 at 8:11 am

    The session is indeed tied to a single browser, and all frames/tabs opened in this browser share the same session. If you exit the browser, you lose the session.

    Session tracking is implemented using cookies, but can fall back to URL rewriting if cookies are not accepted by the browser. This, however, requires the developer to be scrupulous and to always use appropriate methods or tags in order to encode the URL of every link and action of the application.

    What the last part means is that if you deploy two different webapps in the same servlet container, and the same user, with the same browser, uses both applications, he will have two different sessions: one for each webapp. The session of the first webapp is completely isolated from the session of the second one.

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

Sidebar

Related Questions

I am using Tomcat 6 and have some questions about Apache mod_jk as follows.
How to create simple webserver in Java using Eclipse, Tomcat and Jersey i.e steps
I was using Tomcat with Eclipse nicely. Now I cannot start the server. I
I am working on a web project using Tomcat 6 as my webserver and
I've been using Tomcat for years, but I have been put on a new
hi i am using tomcat 6 as webserver. i have two webbapplication installed on
I am using tomcat 6 web server to do some jsp stuff. If I
Here is how our Tomcat webserver is currently setup. We are using jsp for
I am using spring,JPA,jsf for my application and webserver is tomcat.In my application i
I am using tomcat as my webserver. i have application which needs a tomcat

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.