90
Views
4
Comments
Solved
[Ultimate PDF] Upgraded from 1.0.5 to 2.0.1 and session reuse stop working
Question
Forge component by Leonardo Fernandes
15
Published on 08 Jan 2021

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

mvp_badge
MVP
Rank: #5
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".

mvp_badge
MVP
Rank: #5

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

Rank: #19782

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!


Rank: #19782

Hello Leonardo,


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


Thanks!