[opencms-dev] Using Guest CmsUser

Pere Torrodellas ptorrodellas at fihoca.com
Tue Oct 10 13:58:14 CEST 2006


To answer my own question: it doesn't work, because the CmsUser instance
seems to be shared for all guest users, right?

I should have guessed it, because the user name is always "Guest", and
possibly OpenCms uses this in some way. Sorry to have wasted your time :-(

Pere

----- Original Message ----- 
From: "Pere Torrodellas" <ptorrodellas at fihoca.com>
To: "OpenCms Mail List" <opencms-dev at opencms.org>
Sent: Tuesday, October 10, 2006 12:05 PM
Subject: [opencms-dev] Using Guest CmsUser


> Hello,
>
> I am evaluating the possibility of using the CmsUser object that OpenCms
> creates for every "Guest" user to keep information entered by the user
> (name, e-mail, etc) for the duration of the session, instead of using
> Session attributes (which I've always heard is better to avoid if
possible).
>
> I tested it, and it works: successive requests are able to recover the
guest
> CmsUser data stored previously.
>
> Can someone tell me if this can lead to unexpected troubles, or is
> discouraged for some reason?
>
> Thanks,
>
> Pere
>
>
> _______________________________________________
> 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




More information about the opencms-dev mailing list