[opencms-dev] Logoff system and session flsuh
Nick Panienski
panienski at codecentric.de
Fri Apr 4 15:53:16 CEST 2008
Hi Jordan,
I recon the easiest way to do this is to invalidate the session. Just link to a logoff.jsp with the following contents:
<% session.invalidate(); response.sendRedirect("/page/that/should/be/displayed/after/logout.html"); %>
That's it.
HTH
Nick
--
Mit freundlichen Grüßen
Nick Panienski
IT Consultant
codecentric GmbH
Grünewalder Str. 29-31
42657 Solingen
Telefon +49 (212) 24 94 330
Fax +49 (212) 24 94 334
Mobil +49 (151) 167 06 496
eMail panienski at codecentric.de
Internet http://www.codecentric.de <http://www.codecentric.de/>
Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der Gesellschaft: Solingen
Registergericht: Amtsgericht Wuppertal, HRB 19214
________________________________
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Territorio Jordan-V.
Gesendet: Freitag, 4. April 2008 15:11
An: The OpenCms mailing list
Betreff: [opencms-dev] Logoff system and session flsuh
Hi all,
I have made a login system which redirect me to a page where information about the current user are displayed. But now i'd like to put a link on the user page to log him off. But i was wondering if some tag could do it because i don't what is the correct (or best) syntax to perform this action...
I imagine that my link could send information to a java class and then all sessions variables could be flushed. Unfortunately, as i am a newbie with openCMS and JSPs, i'm a little lost...
someone could help me?
--
TERRITORIO Jordan-Victor
Ingénieur d'Intégration Java
TEAMLOG - Ingenieurs 2000
+33 6 30 66 54 69
jot at teamlog.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080404/c0cfe05a/attachment.htm>
More information about the opencms-dev
mailing list