Consider a scenario there is app with Login page, Home page and second Page.
The user has logged into the app and home page is available for him.
Lets say, serverSessionTimeout=1 i.e 60 seconds. User is not using the app for more than 2 minutes.
Now the user tries to access the second page from Home page and i want to block this navigation since the session needs to be maintained for 60 seconds.
Whether this can be done with WL.Client.isUserAuthenticated.
This topic has been locked.
Pinned topic Restrict user access based on session timeout
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
ShmulikB 270005FKGM20 Posts
Re: Restrict user access based on session timeout2012-12-09T12:14:39ZThis is the accepted answer. This is the accepted answer.Hi
First, IBM Worklight is a single-page-application (SPA)
so you should not use more than 1 HTML file.
For more information refer to training module 7.5 Multi page application basics
Second, there is no need to use WL.Client.isUserAuthenticated -
Once the sessionTimeout expires the user will get a login screen.
Re: Restrict user access based on session timeout2012-12-13T09:30:18ZThis is the accepted answer. This is the accepted answer.
- ShmulikB 270005FKGM
I would like to make my question more clear.
Login page, Home page and second Page are in the single HTML file with separate div.
Once the user gets authenticated, user identity object will be created at server.
If user tries to access second page from home page http://i.e mobile - client, how i can restrict the navigation that based on the session time out.
Re: Restrict user access based on session timeout2012-12-13T16:00:32ZThis is the accepted answer. This is the accepted answer.