0

after Session Time out redirect to another page

asked 2018-09-04 16:15:18 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2599 2 8
http://emrpms.blogspot.in...

After session time out, is it possible to redirect to another page to ask the password again.

Example look at this page

https://demos.creative-tim.com/light-bootstrap-dashboard-pro/examples/pages/lock.html

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-09-12 18:51:08 +0800

psinalberth gravatar image psinalberth
52 6

updated 2018-09-12 18:53:00 +0800

I think you could use

<session-config>
    <device-type>ajax</device-type>
    <timeout-uri>/login.zul</timeout-uri>
</session-config>

in zk.xmllike is shown here

link publish delete flag offensive edit
0

answered 2018-09-13 12:27:37 +0800

cor3000 gravatar image cor3000
4141 1 7
ZK Team

Obviously when the session has timed out the current user information will be lost at server side. So if you only want to ask the user for a password only without having to retype the user name, just set a cookie containing some kind of securely encrypted information. If that cookie value is present and can be decrypted into a valid username the login page can omit the username input field and only ask for the password.

also worth mentioning automatic-timeout element

also explained here: https://www.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/SessionTimeoutManagement#AutomaticTimeout

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2018-09-04 16:15:18 +0800

Seen: 6 times

Last updated: Sep 13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More