javascript - Clear session on window close -


I am working on an exam project, when the user starts a trial, then open it in a new window by window it happens. Open () If the user closes a test before the end of the session then the session creates a problem, so I want to end the session when the user closes the browser window or close / disable button before the trial is complete Closes.

Whatever you do not have here, it will not be exaggerated by the user; Welcome to client-side programming (actual browser "close" button is not within your reach) You can tap in (To do so many sites to confirm a ("Do you want to leave this page?") to pop up the dialog) But even so It is very easy to bypass any person how to open a browser console (for example, F12 on each browser), because they can only redefine the window.confirm = ((=) => true) Are; and are not bothered by the confirmation dialog.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -