Session Problems
Hi Guys,
first, sorry for my bad english.
I have a Problem with Session in JSC2. I have a Navigation Fragment, and in that there is a logout button. If i klick that button in the action the following method will be executed:
public String imageHyperlink8_action(){
FacesContext fc = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession)
fc.getExternalContext().getSession(false);
session.invalidate();
returnnull;//"goToCustomer";
}
The problem now is, that we always have to klick twice on the button to logout. And if i wanna login again, it don't works. I have to login twice again, then i come to the start page. After that i wanna go to another page, for which the user is authorized, and i'm forwarded at the login page again.
The security is realized by security realm.
The same problem with the navigation buttons. I save always the actual page into the session, just that the user can see, at which page he is, for which i change the buttons. I always have to klick the button of the page twice, that the button is changed. It doesn't work, even if i redirect to the same page again and reload it.
Does somebody had the same problem or any idea? I would be thankful for every tip.
Thanks a lot.
Cheers Thorsten

