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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:09:45+00:00 2026-06-03T03:09:45+00:00

I currently have a RESTful webservice which recognises a client via it’s session. I

  • 0

I currently have a RESTful webservice which recognises a client via it’s session.

I have a client which uses ajax/javascript to access the contents of the RESTful webservice. I allow this to happen by responding to the request with the headers: Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Access-Control-Allow-Methods.

However, although the client can access the content’s each request is regarded as a different session as cookies cannot be used across domain.

I don’t want to modify my server code to cater specifically for this style of client, i would prefer a work around client side to give a facade of using a session.

Since I don’t want to store anything through the session, rather I only use the jsessionid as the client identifier I assumed I could artifically inject &jsessionid= to the URL to, at least from the server side, make the client seem to be correctly keeping track of the session.

This doesn’t seem to work – can someone advise on how I can make my client act as if it is using the same sessionid?

  • 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-03T03:09:46+00:00Added an answer on June 3, 2026 at 3:09 am

    …I assumed I could artifically inject &jsessionid= to the URL…

    jsessionid isn’t a query string parameter. You’d want to artificially add ;jsessionid=... (prior to any & in the URL), rather than &jsessionid=....

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

Sidebar

Related Questions

I have a Restful web service developed in Spring MVC which currently returns farmer
I have a very simple WCF4 Restful web service which uses WcfRestContrib to allow
I currently have 4 textboxes which will be used to store an ip address.
I currently have a Gridview , And I want to use client-side validation to
I currently have links w/ class=ajax that I want to retrieve the element with
I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type:
I'm looking for a way to automatically have my RESTful controller, which returns a
I have a Scala application that relies on an external RESTful webservice for some
I am currently developing a RESTful Webservice in Java using the Jersey library. For
I have a Java RESTful webservice that will be called about every 10 seconds

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.