-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hello, i have a small problem with session; i have a zul of checking username and password and redirection to main.zul which have to containt a button of Logout to redirect me in the loginpage.zul
i didn't understand how to deal with session. please i need help thankyou
Hello hellozk23,
Dealing with session in zk is a simple task. For more information please refer to the following link, and focus on the section: "Authentication Service".
http://books.zkoss.org/wiki/ZK_Essentials/Chapter_8 (http://books.zkoss.org/wiki/ZKEssentials/Chapter8):_Authentication
There you can see how a session attribute is set and removed respectively in order to set up the user authentication.
Best Regards,
Darksu
Asked: 2014-05-14 16:30:57 +0800
Seen: 26 times
Last updated: Jul 20 '14
what exactly is your problem? Your user his credentials are saved into session when you login. => logout will destroy the session.
chillworld ( 2014-05-15 06:59:59 +0800 )edit