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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:50:14+00:00 2026-06-14T11:50:14+00:00

I am creating a session id HttpSession session = request.getSession(true); in login servlet and

  • 0

I am creating a session id

HttpSession session = request.getSession(true);

in login servlet and calling welcome page from there…printing session values in both the pages

<% System.out.println(session.getID()); %>. Though these session values comes same on my local machine and local tomcat server, when I run it on remote tomcat server I am getting two different session values. Is there any configuration setting in Tomcat which might affect this. I am using java1.6, Tomcat6.0.25, xml2.4.
Can anyone help me with this weird issue.

I recently noticed that set-cookie PATH is set to “/website-name” while I saw that several online documents say “Path=/”. Can this be a problem and where/how to change this path to see its effects?

[SOLVED]

  • 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-14T11:50:16+00:00Added an answer on June 14, 2026 at 11:50 am

    It might not be something considered good programming trick, but this problem required changing the sessioncookiepath value at web-app>METAINF>context.xml file. For particularly my problem, putting following code helped: Context sessionCookiePath=”” This might be due to my website structure.

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

Sidebar

Related Questions

i am creating session while rendering the page. After that i am calling the
I learned about $_SESSION about several weeks ago when creating a login page. I
I am creating the session and i am able to login and logout efficiently.
How can i prevent the session store from creating a session on JSON/XML calls
I'm creating session variables with every login it's $_SESSION['usr'] & $_SESSION['psw']. When I log
Without creating a session, I want to check the validity of a login/pw. How
I am creating a session for a login logout system. But my session_destroy isn't
I am creating session factory by reading properties file which is outside from by
So far I understand Httpsession concepts in Java. HttpSession ses = req.getSession(true); will create
In my asp.net website I am creating a session upon user login and I

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.