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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:44:07+00:00 2026-05-25T21:44:07+00:00

HttpServletRequest ‘s getSession(boolean) method mentions session integrity. How does Tomcat maintains session integrity? What

  • 0

HttpServletRequest‘s getSession(boolean) method mentions session integrity. How does Tomcat maintains session integrity? What rules does it use? What method? What is happening under the hood precisely?

EDIT

How and when is a specific session ID is created? Does Tomcat rely on IP address and port for example?

  • 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-25T21:44:08+00:00Added an answer on May 25, 2026 at 9:44 pm

    In Tomcat the ManagerBase.generateSessionId() method is responsible for session id generation. It looks for me that session ids are generated based on random numbers. You can store the client’s IP address in the session and check it in your webapp but as far as I know Tomcat does not do that.

    About session integrity: could you define it, please? There is a paragraph about it in the Java Servlet Specification, Version 3.0 but it isn’t too much:

    7.1.4 Session Integrity

    Web containers must be able to support the HTTP session while
    servicing HTTP requests from clients that do not support the use of cookies. To
    fulfill this requirement, Web containers commonly support the URL rewriting
    mechanism.

    • 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.0, JSF2.0.2 I realized that randomly HttpServletRequest getSession method, returns
My Util.java contains following method: public static boolean isAndroid(HttpServletRequest request) { boolean retVal =
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
static public void doRestrictionList(HttpServletRequest request, pageBean UTIL) Can we declare a method as final
I've got some production code that does something like: HttpServletRequest httpServletRequest ... DataInputStream dis
I have the servlet name ExampleServlet.java which have only init method with HttpServletRequest and
I have a tomcat server proxied by lighttpd 1.4. The problem is, that HttpServleTRequest.getRemoteAddr
What is the difference between method setAttribute() of HttpServletRequest class and setAttribute() of HttpSession
@RequestMapping(method = RequestMethod.GET) public String setupForm(@RequestParam(username) String username, ModelMap model, HttpServletRequest request) { User
*//post method* protected void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { String username

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.