[Ultimate PDF] Upgraded from 1.0.5 to 2.0.1 and session reuse stop working

Forge Component
(15)
Published on 14 Sep (2 weeks ago) by Leonardo Fernandes
15 votes
Published on 14 Sep (2 weeks ago) by Leonardo Fernandes

Hello,


I´ve upgraded the component  from 1.0.5 to 2.0.1 and session reuse stoped working on production.

In QA and Dev worked fine, but on prodution the page redered was the login page. The diference for production is that we have 2 frontends.

We use the PrintToPDF action.


Thanks

Solution

Hi Vitor.

Version 2.0 changed the way session cookies are shared with the browser. The session cookies are only reused if the URL you are converting to PDF is a local URL and uses HTTPS (although the HTTPS requirement will be lifted in the upcoming 2.0.2). This change was introduced to avoid the session cookies being leaked to third party URLs.

If you're using an absolute URL, make sure that the hostname exactly matches the one displayed in Service Center in Environment Configuration. But the easiest way is to use a relative URL in the format "/module/screen.aspx".

Solution

Hi Vitor. Did you try my suggestion to use a relative URL?

Leonardo Fernandes wrote:

Hi Vitor. Did you try my suggestion to use a relative URL?

Hello,


I had to revert to version 1, and had not opportunity to get back to test version 2. But I will try that and let you know.


Thanks for your time and support, this is a great component!


Hello Leonardo,


Just to let you know, it worked nice, setting as relative.


Thanks!