Url change not triggering new session

0
0

Hi,

I have a wisej app consisting of multiple pages. This app is being accessed through an old VWG app using an html box and passing in parameters via the url. This is a temporary measure as we convert our VWG app to Wisej.

 

So how the wisej app currently works is that is reads the url using the Application.QueryString and chooses which page to load based on those arguments, which is working only for the first page being loaded. This loading of the control is happening from the main method in the program.cs file by the way. SO, if the url is modified using the parent html box in the old VWG app, the main method doesn’t get fired again, telling me a new session is not being created.

However, according to this post: [SOLVED] Different context or session for each browser tab – Wisej.com (which is admittedly pretty old) changing the url should be triggering a new session. Is that no longer the case, or am I missing something else?

 

 

 

  • You must to post comments
0
0

Hi Em Dev,

You’re correct that’s an old post. Now updating the URL like that won’t create a new session.

I would suggest handling the Application.HashChanged event:
https://docs.wisej.com/api/wisej.web/general/application#hashchanged

i.e.
localhost:5000/#MyForm -> localhost:5000/#MyForm2

Regards,
Levie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.