This is a migrated thread and some comments may be shown as answers.

managing history objects

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 11 Dec 2013, 07:10 PM
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.

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 13 Dec 2013, 08:17 AM
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!
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or