<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=115073914-07042008><FONT face=Arial
color=#0000ff size=2>Seems correct to me. You can have numerous differnt user
type, just let your db tell you what role the user has and log in the
appropriate technical user.</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Mit freundlichen Grüßen<BR>Nick Panienski<BR>IT
Consultant<BR><BR>codecentric GmbH<BR>Grünewalder Str. 29-31<BR>42657
Solingen<BR><BR>Telefon +49 (212) 24 94
330<BR>Fax +49 (212) 24 94
334<BR>Mobil +49 (151) 167 06 496<BR>eMail
panienski@codecentric.de<BR>Internet <A
href="http://www.codecentric.de/">http://www.codecentric.de</A><BR><BR>Geschäftsführer:
Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der Gesellschaft:
Solingen<BR>Registergericht: Amtsgericht Wuppertal, HRB 19214</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>Im Auftrag von </B>Territorio
Jordan-V.<BR><B>Gesendet:</B> Montag, 7. April 2008 16:04<BR><B>An:</B> The
OpenCms mailing list<BR><B>Betreff:</B> Re: [opencms-dev] Logoff system and
session flsuh<BR></FONT><BR></DIV>
<DIV></DIV>Okay, now i see...<BR>so to "secure" my pages i just have to use
the existing technical user...<BR><BR>So if i understand, the only things i
have to do is:<BR>-create a manager account in opencms to log as an
admin<BR>-create a user account in opencms to log users normally, after
validation using requests to external DB.<BR><BR>And then in my template, i
just have to check if the Logged Man is a Manager or a User to make elements
editable or not.<BR><BR>Is that correct ?<BR><BR><BR>
<DIV><SPAN class=gmail_quote>2008/4/7, Nick Panienski <<A
href="mailto:panienski@codecentric.de">panienski@codecentric.de</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>We use a
concept we call "technical user". We authenticate a "real" user against the
external database and if the credentials are okay we login an
existing technical user in OpenCms that represents the real users
permissions.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Example:
John Smith logs in with username/password, trying to access a
secure accounting page, the combination is checked against the db, if
successfull an accounting technical user is logged in thus granting John
Smith access.</FONT></SPAN></DIV><SPAN class=q>
<P><FONT size=2>--<BR>Mit freundlichen Grüßen<BR>Nick Panienski<BR>IT
Consultant<BR><BR>codecentric GmbH<BR>Grünewalder Str. 29-31<BR>42657
Solingen<BR><BR>Telefon +49 (212) 24 94
330<BR>Fax +49 (212) 24 94
334<BR>Mobil +49 (151) 167 06
496<BR>eMail <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A><BR>Internet <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.codecentric.de/"
target=_blank>http://www.codecentric.de</A><BR><BR>Geschäftsführer: Peter
Gierse, Mirko Novakovic und Rainer Vehns Sitz der Gesellschaft:
Solingen<BR>Registergericht: Amtsgericht Wuppertal, HRB 19214</FONT> </P>
<DIV> </DIV><BR></SPAN>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><SPAN class=q><B>Von:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>Im Auftrag von
</B>Territorio Jordan-V.<BR></SPAN><B>Gesendet:</B> Montag, 7. April 2008
14:54</FONT>
<DIV><SPAN class=e id=q_119292e51687eedf_5><FONT face=Tahoma
size=2><BR><B>An:</B> The OpenCms mailing list<BR><B>Betreff:</B> Re:
[opencms-dev] Logoff system and session flsuh<BR></FONT></SPAN></DIV><FONT
face=Tahoma size=2></FONT><BR></DIV>
<DIV><SPAN class=e id=q_119292e51687eedf_7>
<DIV></DIV>yes but the fact is that users accounts are in an external
database... so i think it's a little bit more difficult ^^<BR><BR>
<DIV><SPAN class=gmail_quote>2008/4/7, Nick Panienski <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>As
far as I understand your needs you just have to set the resources'
permission.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>This
is a standard OpenCms feature. Create a group, add users to that group,
set groups permission on resource.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Have
a look in the OpenCms Wiki for more information:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://opencms-wiki.org/How_to_create_a_restricted_area_on_your_homepage"
target=_blank>http://opencms-wiki.org/How_to_create_a_restricted_area_on_your_homepage</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>and</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://opencms-wiki.org/How_OpenCms_Permissions_work"
target=_blank>http://opencms-wiki.org/How_OpenCms_Permissions_work</A></FONT></SPAN></DIV><SPAN>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>HTH</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff
size=2>Nick</FONT></SPAN></DIV>
<P><FONT size=2>--<BR>Mit freundlichen Grüßen<BR>Nick Panienski<BR>IT
Consultant<BR><BR>codecentric GmbH<BR>Grünewalder Str. 29-31<BR>42657
Solingen<BR><BR>Telefon +49 (212) 24 94
330<BR>Fax +49 (212) 24 94
334<BR>Mobil +49 (151) 167 06
496<BR>eMail <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A><BR>Internet <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.codecentric.de/"
target=_blank>http://www.codecentric.de</A><BR><BR>Geschäftsführer:
Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der Gesellschaft:
Solingen<BR>Registergericht: Amtsgericht Wuppertal, HRB 19214</FONT>
</P>
<DIV> </DIV><BR></SPAN>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><SPAN><B>Von:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>Im Auftrag von
</B>Territorio Jordan-V.<BR></SPAN><B>Gesendet:</B> Montag, 7. April
2008 10:39</FONT>
<DIV><SPAN><FONT face=Tahoma size=2><BR><B>An:</B> The OpenCms mailing
list<BR><B>Betreff:</B> Re: [opencms-dev] Logoff system and session
flsuh<BR></FONT></SPAN></DIV><FONT face=Tahoma
size=2></FONT><BR></DIV>
<DIV><SPAN>
<DIV></DIV>Of course ^^<BR>I want to create a group of pages with a
private access. If people have no account he can't acces to pages, if
he has an user account he can reach pages and do some forms, and he
has an administrator account he can edit contents of those
pages.<BR><BR>For the moment i just try to make that peiople whit no
account can't have access to pages.<BR><BR>Jordan<BR><BR>
<DIV><SPAN class=gmail_quote>2008/4/7, Nick Panienski <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV><SPAN>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>> <FONT face="Times New Roman" color=#000000 size=3>Maybe
you have an idea about securizing a a page when you're logged or
not?</FONT></FONT></SPAN></DIV></SPAN>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Sorry, I didn't understand your second question, could you
describe your other problem a little bit more
detailed?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Cheers</FONT></SPAN></DIV><SPAN>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Nick</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><FONT size=2>--<BR>Mit freundlichen
Grüßen<BR>Nick Panienski<BR>IT Consultant<BR><BR>codecentric
GmbH<BR>Grünewalder Str. 29-31<BR>42657
Solingen<BR><BR>Telefon +49 (212) 24 94
330<BR>Fax +49 (212) 24 94
334<BR>Mobil +49 (151) 167 06
496<BR>eMail <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A><BR>Internet <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.codecentric.de/"
target=_blank>http://www.codecentric.de</A><BR><BR>Geschäftsführer:
Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der
Gesellschaft: Solingen<BR>Registergericht: Amtsgericht Wuppertal,
HRB 19214</FONT> </DIV>
<DIV> </DIV><BR></SPAN>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><SPAN><B>Von:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>Im Auftrag
von </B>Territorio Jordan-V.<BR></SPAN><B>Gesendet:</B> Freitag,
4. April 2008 16:11<SPAN><BR><B>An:</B> The OpenCms mailing
list<BR></SPAN><B>Betreff:</B> Re: [opencms-dev] Logoff system and
session flsuh<BR></FONT><BR></DIV>
<DIV><SPAN>
<DIV></DIV>Thank you a lot, it works !<BR>I thought there was a
better way, than calling a new JSP file but finally i think it's a
good thing for future purposes...<BR><BR>Maybe you have an idea
about securizing a a page when you're logged or not?<BR><BR>
<DIV><SPAN class=gmail_quote>2008/4/4, Nick Panienski <<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Hi Jordan,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>I recon the easiest way to do this is to invalidate
the session. Just link to a logoff.jsp with the following
contents:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2><% session.invalidate();
response.sendRedirect("/page/that/should/be/displayed/after/logout.html");
%></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>That's it.</FONT></SPAN></DIV><SPAN>
<DIV dir=ltr align=left><BR><FONT face=Arial color=#0000ff
size=2>HTH</FONT></DIV>
<DIV dir=ltr align=left></DIV></SPAN><SPAN><FONT face=Arial
color=#0000ff size=2>Nick</FONT></SPAN></DIV>
<P><FONT size=2>--<BR>Mit freundlichen Grüßen<BR>Nick
Panienski<BR>IT Consultant<BR><BR>codecentric
GmbH<BR>Grünewalder Str. 29-31<BR>42657
Solingen<BR><BR>Telefon +49 (212) 24 94
330<BR>Fax +49 (212) 24 94
334<BR>Mobil +49 (151) 167 06
496<BR>eMail <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:panienski@codecentric.de"
target=_blank>panienski@codecentric.de</A><BR>Internet <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.codecentric.de/"
target=_blank>http://www.codecentric.de</A><BR><BR>Geschäftsführer:
Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der
Gesellschaft: Solingen<BR>Registergericht: Amtsgericht
Wuppertal, HRB 19214</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=de dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>Von:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>Im
Auftrag von </B>Territorio Jordan-V.<BR><B>Gesendet:</B>
Freitag, 4. April 2008 15:11<BR><B>An:</B> The OpenCms mailing
list<BR><B>Betreff:</B> [opencms-dev] Logoff system and
session flsuh<BR></FONT><BR></DIV>
<DIV><SPAN>
<DIV></DIV>Hi all,<BR><BR>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...<BR><BR>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...<BR><BR>someone
could help me?<BR><BR clear=all><BR>-- <BR>TERRITORIO
Jordan-Victor<BR>Ingénieur d'Intégration Java<BR>TEAMLOG –
Ingenieurs 2000<BR><BR>+33 6 30 66 54 69<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jot@teamlog.com"
target=_blank>jot@teamlog.com</A>
</SPAN></DIV></BLOCKQUOTE><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To
change your list options, or to unsubscribe from the list,
please visit<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>TERRITORIO Jordan-Victor<BR>Ingénieur
d'Intégration Java<BR>TEAMLOG – Ingenieurs 2000<BR><BR>+33 6 30 66
54 69<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jot@teamlog.com" target=_blank>jot@teamlog.com</A>
</SPAN></DIV></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change
your list options, or to unsubscribe from the list, please
visit<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>TERRITORIO Jordan-Victor<BR>Ingénieur
d'Intégration Java<BR>TEAMLOG – Ingenieurs 2000<BR><BR>+33 6 30 66 54
69<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jot@teamlog.com" target=_blank>jot@teamlog.com</A>
</SPAN></DIV></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your
list options, or to unsubscribe from the list, please visit<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>TERRITORIO Jordan-Victor<BR>Ingénieur d'Intégration
Java<BR>TEAMLOG – Ingenieurs 2000<BR><BR>+33 6 30 66 54 69<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jot@teamlog.com" target=_blank>jot@teamlog.com</A>
</SPAN></DIV></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>TERRITORIO Jordan-Victor<BR>Ingénieur d'Intégration
Java<BR>TEAMLOG – Ingenieurs 2000<BR><BR>+33 6 30 66 54 69<BR><A
href="mailto:jot@teamlog.com">jot@teamlog.com</A> </BLOCKQUOTE></BODY></HTML>