Control URLs

Just starting out? Need help? Post your questions and find answers here.
TheMexican
Posts: 17
Joined: Sun Jun 07, 2015 5:58 pm

Control URLs

Post by TheMexican »

Are there any built in commands to control or see the URL events?
I have written a small 2 window application. I named the compiled file index.html so when the user goes to the application base URL the application launches by default.

The first window is a login window and if the user logs in succesfully then a main window appears. The issue I have is that if the user refreshes the page it goes back to the beginning of the application (login window), I would like to stay in the current window.
See pseudo code I would like:

URL refresh event
--See which window is the active one
-- Show the current active window or ignore refresh (I don't want it to go to beginning of app)

Thanks!
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Control URLs

Post by Fred »

I think you will have to do it in your code logic, by setting a persistent cookie or something similar client side.
Post Reply