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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:45:37+00:00 2026-06-12T04:45:37+00:00

scenario:user visits web container A(Apache Tomcat), A set values in session scope, HttpServletRequest.getSession().setAttribute(key, value);

  • 0

scenario:user visits web container A(Apache Tomcat), A set values in session scope,

HttpServletRequest.getSession().setAttribute(“key”, “value”);

and redirect user to another web container B(a php server).

HttpServletResponse.sendRedirect("path to server B");

Could B get the same values in session scope which’s set by A?

HttpServletRequest.getSession().getAttribute(“key”);

according to this question, java servlet application scope redirect

it seems possible, though it might be redirecting to the same container,
the httpsession would be in the same VM,
or another container in the load-balancing server,
httpsession could migrate between these container,
thus httpsession would stay still in these two cases.

what if I want to pass attributes between two different server(java and PHP) while redirecting?

wish I do express my thoughts right, any advice would be appreciated, thank you.

  • 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-12T04:45:38+00:00Added an answer on June 12, 2026 at 4:45 am

    If you wish to pass attributes between a Java web server and a PHP web server, you have to add them to the outgoing HTTP request as request parameters (as part of query string, the portion of the HTTP URL after ?).

    The HttpSession information in a Java web server is available on the server side and is connected between two stateless HTTP sessions through JSESSIONID request parameter or cookie (based on if the browser supports cookies). So, any attributes set in the Session of a Java web server will not be available to the PHP web server.

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

Sidebar

Related Questions

Imagine the following scenario. User visits a site A (ASP.NET), authenticates using ADFS and
This is scenario I'm going for: User visits the site, site.com, meta tag detects
I want to implement a scenario where, when a user visits my smart gwt
Scenario: User A send application request to user B User B accepts request after
Scenario: User X1 logged in. He can not be logged again. up to previous
This is the standard scenario: User registers on the site User receives an account
I've following scenario: The user loads home.html , selects a subset of the five
In my project there is a scenario that user will log in -> browse
Here I am explaining the scenario - The user, after providing a service has
I'm looking for a basic search functionality with JavaScript. The Scenario : The user

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.