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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:19:03+00:00 2026-05-25T00:19:03+00:00

I need to be able to maintain a session by having the JSESSIONID specified

  • 0

I need to be able to maintain a session by having the JSESSIONID specified as a parameter of the query string of the url rather than part of the URL itself.

I other words I need to maintain a session like this

http://myserver.com?jsessionid=A463B23BC4F2342FA

rather than

http://myserver.com;jsessionid=A463B23BC4F2342FA

For a servlet container I’m using both tomcat 6.0 and weblogic 10.3

Reason:

I’m creating a Google Earth network link which requires me to keep a session for the requests a client makes. Google Earth doesn’t support cookies and it appears there is no way to change the url that it uses to make requests. I can only tell it to append a query string parameter on subsequent requests by adding the following to the kml in my server responses

<NetworkLinkControl>
    <cookie>JSESSIONID=A463B23BC4F2342FA</cookie>
</NetworkLinkControl>
  • 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-25T00:19:04+00:00Added an answer on May 25, 2026 at 12:19 am

    Not possible. I’d create on your side a filter which redirects the request to the proper URL whenever an URL arrives with the JSESSIONID in the query string.

    Basic kickoff example:

    @Override
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) res;
    
        if ("GET".equals(request.getMethod()) && request.getParameter("JSESSIONID") != null) {
            response.sendRedirect(request.getRequestURL().append(";JSESSIONID=")
                .append(request.getParameter("JSESSIONID")).toString());
        } else {
            chain.doFilter(request, response);
        }
    }
    

    Map this on an URL pattern which covers requests which could potentially originate by that site. Or if there is none, just on /*.

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

Sidebar

Related Questions

I need to be able to get at the full URL of the page
I need to be able to take a string like: '''foo, bar, one, two,
We need to be able to simultanously maintain a set of different versions of
I have records with a time value and need to be able to query
I need to be able to create basic MS Project items (tasks, projects, resources,
I need to be able to get a list of the groups a user
I need to be able to merge two (very simple) JavaScript objects at runtime.
I need to be able to load the entire contents of a text file
I need to be able to quickly convert an image (inside a rails controller)
I need to be able to GZip compress a file in an Excel VBA

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.