W
whenshaw
Guest
Hi Harrie, I can't give you a specific suggestion, but I guess there are 2 possibilities here. One is the idea that you and Anil have already discussed of logging out when the user presses the back button. However, I could not get that to work either -- when I tried your approach (in my own project) of invoking logout on the firing of the Backbutton event, the Backbutton event did not fire when I used backspace or the browser back arrow in the emulator. If you can't get logout to be invoked when the user uses the back button, can you change the Welcome Page so that pressing the login button does not really invoke Login if there was already a successful login, and simply transitions to the Detail Page? You could set a local variable as a flag to indicate successful login -- of course, you would need to be sure to clear that flag whenever there is a logout. You would need to change your Login Button Click event so instead of doing an "Invoke service", the action is "Run JavaScript", and then invoke the login service (or not) using JavaScript in the handler. I have not tried this yet, right now it is just an idea. --Wayne
Continue reading...
Continue reading...