Fórum

What is precise difference between pre and post logout event

asif aftab, modificado 9 Anos atrás.

What is precise difference between pre and post logout event

Regular Member Postagens: 123 Data de Entrada: 02/09/13 Postagens Recentes
Difference between pre and post login is
if you successfully login or not then pre login event always fire but post login event will fire only if you successfully login.
Now in the same way what is the difference between pre and post logout event, because in logout no authentication problem just press the button of logout, so what is the difference, don't say that one is fire before logout and other one after.
Thanks
thumbnail
Pankaj Kathiriya, modificado 9 Anos atrás.

RE: What is precise difference between pre and post logout event

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
You denied, but still truth is that LogoutPreAction will be called before actual LogoutAction, and LogoutPostAction will be called after LogoutAction. emoticon
asif aftab, modificado 9 Anos atrás.

RE: What is precise difference between pre and post logout event

Regular Member Postagens: 123 Data de Entrada: 02/09/13 Postagens Recentes
Then the only difference between these two tag is just fraction of seconds means how first you press logout key or the response of your processor that how much it is fast.
thumbnail
Amos Fong, modificado 9 Anos atrás.

RE: What is precise difference between pre and post logout event

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Maybe an example would help.

In LogoutPreAction you have access to the session and user information which is not available after logging out. You could use it to do something like save some session data.

In LogoutPostAction the session has now been invalidated and you can create a new session.