[opencms-dev] RE: Logout without invalidating session

Dusty_it i.dastolfo at smart.it
Fri Jan 26 10:43:00 CET 2007


No, i need to logout a webuser, not an editor.


Jonathan Woods wrote:
> 
> Would it be any use for you instead to setCurrentProject() to the online
> project?  This would leave the user logged in, but they'd be seeing what
> ordinary punters see (unless your JSPs behave otherwise). 
> 
> Jon
> 
> -----Original Message-----
> From: sfdbfoui at host2.scintillance.com
> [mailto:sfdbfoui at host2.scintillance.com] On Behalf Of Dusty_it
> Sent: 23 January 2007 17:38
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Logout without invalidating session
> 
> 
> Hi,
>      I'm trying to implement a logout without using the
> CmsJspLoginBean.logout(), because it invalidates the entire session and I
> don't want it.
> I read in another post in this forum that this can be accomplished with:
> 
> 	String guestUser = OpenCms.getDefaultUsers().getUserGuest();
> 	cms.getCmsObject().loginUser(guestUser, "Guest");
> 
> Note that I canged the Guest password to "Guest" as because opencms 6.2.2
> does not accept an empty password (I checked the source code) and throws
> an
> exception.
> 
> The problem is that this method works only for the lifecycle of the jsp
> page
> where this snippet is invoked.
> When I switch to another page it seems to retain the old login. 
> 
> Anyone had the same problem? 
> More generally, had anyone solved the problem of logging out without
> invalidating the session?
> 
> Regards
> --
> View this message in context:
> http://www.nabble.com/Logout-without-invalidating-session-tf3065604.html#a85
> 26425
> Sent from the OpenCMS - Dev mailing list archive at Nabble.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
> 
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Logout-without-invalidating-session-tf3065604.html#a8648287
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list