Jump to content
We've recently updated our Privacy Statement, available here ×

Use user session in visualize


srang

Recommended Posts

I'm working on an embedded app that uses a combination of REST services in java controllers and visualize.js on the front end. Is there a way to share a user's session from the controllers with visualize? The reason I ask is because the slowest step of using either of the services is the authentication process and it seems wasteful to do it twice for one page (one serverside and one client side).

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can send back the session cookies to the browser using http call to your application, the Set-Cookie header should do the job. 

Note: This method works for you app and jasperserver hosted on the same system, meaning the same host. Else if you want to use 2 different hosts you need to understand the CORS settings and use them in the right way to set cookies from other host.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...