First time here? Check out the FAQ!
asked 2017-01-20 11:02:20 +0000vvico
Hi all, I have some problems on redirection after logging out and then trying to log in again; I explain:
The redirection after log in depends on the User's profile, if you are an administrator you go to Index.zul, if you are another profile you go to a different zul, the problem starts when I log in with admin (all ok), I relog with another profile (all ok) and I relog again with admin (this time, it redirects me like if i was non-admin profile, but debugging my current profile I can assure I'm logged as an administrator). If I clean cookies it works well, is there any way to clean cookies from java after log out or someone know any way to fix it?
answered 2017-01-20 11:41:31 +0000Darksu
Can you please provide more information on how you store the session information?
There is a chance that something is not cleaned up properly.
I check the user's profile at loggin and depends on the profile i redirect them, at loggout I invalidate the Session (Sessions.getCurrent.invalidate()) the worst thing is that in one server its running OK and on the other server its not working with same code ...
We confirmed that cleaning cookies fix the problem.
Any way to clean cookies from java?
Cookie cookies = ((HttpServletRequest) Executions.getCurrent().getNativeRequest()).getCookies(); . . .
answered 2017-02-02 13:15:28 +0000vvico
Thanks and sorry terry, i mean how to clean cache not cookies, my fault.
Cache can only be cleared by the browser.
declare the no-caching in the zul file.
<!DOCTYPE html> <?html lang="en" ?> <?page id="indexPage" title=" ZKBoost " cacheable="false" language="xul/html" zscriptLanguage="Java"?> <?meta content="text/html; charset=UTF-8" pageEncoding="UTF-8"?> <?meta name="description" content="ZKBoost" ?> <zk> ...
answered 2017-02-09 08:24:03 +0000vvico
Thanks and sorry, i was bussy, i tried the code but it doesn't fix my problem, i will check again why it's not working, thank you anyway.
Asked: 2017-01-20 11:02:20 +0000
Seen: 57 times
Last updated: Feb 09