Forum Post: RE: webspeed logout mechanism

  • Thread starter Thread starter bart.syryn
  • Start date Start date
Status
Not open for further replies.
B

bart.syryn

Guest
Hi Matt, Thanks for the clear example and I implemented it, I've got it working but not completely. I think it has something to do with my handling of the html-files. What I do : User goes to the login page : wsLogin.html He presses 'login' in the wsLogin.html file : form method="post" action="Login.r" So Login.r (just a .p on the server is called). The validation happens in that .r and the sessionID is set. In the .p when the validation is correct I do : RUN run-web-object IN web-utilities-hdl("wsMainUsr.html"). So I call the main menu. In the main menu when the user clicks 'log out' I added as you suggested : button onclick="location.replace('/wslogout.html');" logout /button wslogout.html is called and in that html-file I placed the code you suggested. Than it works !!! The user gets the login page again and he can't press the back button. The wslogin.html is called every time I press the back button. So far so good. But it's not working in the following scenario : User logs in : wsLogin.html - server side login.r - show wsMainUsr.html. Then user presses a menu-item i.e. 'employees', so my wsEmployee.html file is called. When he presses in wsEmployee.html file the 'log out' button i do exactly the same as in wsMainUsr.html. The user gets back in the login page (wsLogin.html). When I then press back he gets the login.r in his url and he's back on the main menu (wsMainUsr.html) .... The url at that points is : http://localhost/dplan.init/login.r I must do something wrong, but I really don't know how to solve it ... Any suggestions ... Kind regards, Bart S.

Continue reading...
 
Status
Not open for further replies.
Back
Top