managing history objects

2 posts, 0 answers
  1. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 11 Dec 2013 Link to this post

    what options are available for managing the views that get displayed when a user presses the "back" button on their phone? We have a script with a login/logout, and can't have the ability to press "back" to a previous view after the user logs out. The app resets at that point, but the history object is still active.
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 13 Dec 2013 Link to this post

    Hi Michael,

    the mobile application view stack relies on the browser history itself. Rewriting or manipulating entries in it is not possible, due to security restrictions. The recommended way to handle the case you describe would be to implement a before-show view event handler, which verifies that the user is still logged in. 

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top