[opencms-dev] Logoff system and session flsuh

Nick Panienski panienski at codecentric.de
Mon Apr 7 10:22:02 CEST 2008


> Maybe you have an idea about securizing a a page when you're logged or not?
Sorry, I didn't understand your second question, could you describe your other problem a little bit more detailed?
 
Cheers
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 16:11
	An: The OpenCms mailing list
	Betreff: Re: [opencms-dev] Logoff system and session flsuh
	
	
	Thank you a lot, it works !
	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...
	
	Maybe you have an idea about securizing a a page when you're logged or not?
	
	
	2008/4/4, Nick Panienski <panienski at codecentric.de>: 

		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 



		_______________________________________________
		This mail is sent to you from the opencms-dev mailing list
		To change your list options, or to unsubscribe from the list, please visit
		http://lists.opencms.org/mailman/listinfo/opencms-dev
		




	-- 
	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/20080407/77d23126/attachment.htm>


More information about the opencms-dev mailing list