Use user session in visualize

0

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).

srang's picture
206
Joined: Oct 28 2014 - 11:52am
Last seen: 3 years 6 months ago

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.

vgaikwad - 2 years 11 months ago

0 Answers:

No answers yet
Feedback