When you use Application.Navigate to open a page in a new tab/window and then refresh the browser a new session is created.

Answered Closed
0
0

When you use Application.Navigate or Application.OpenWindow to open a page in a new tab/window and then refresh the browser on that tab or window a new session is created. Subsequent refreshes do not generate a new session.

I attached a sample project illustrating the behavior.

Methods used to open application in new tab or browser.

Application.Navigate(“/”,”_blank”);
or
Application.OpenWindow(“/”, “_blank”,””,null);

This executes Program.Main and then Program.Main is executed again when you refresh the browser.

This is causing issues when I pass an authentication token using a hash in the url to the newly opened tab to auto sign in a user who has previously been authenticated in the main window. If they refresh the browser in the new tab or window a new session is created and the hash token is read again in Program.Main and if it has expired they are signed out.

If I open a new tab or window and manually type in the address Program.Main is executed and  a new session is created. If I then refresh the page Program.Main is not executed and no new session is created as expected.

Maybe I am not looking at this correctly or doing something wrong.

Attachment
  • Mario Eduardo Ortega
    Could you please tell me how I could open a form in that new tab? Thank you.
  • You must to post comments
Best Answer
0
0

It was fixed as #3367 https://wisej.com/issues/

  • You must to post comments
0
0

Could you please tell me how I could open a form in that new tab? Thank you.

 

  • You must to post comments
0
0

Screenshots

Attachment
  • You must to post comments
Showing 3 results