Session creation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Session creation

joac

Hi,

 

Is it possible to know the current user when the session is created? I am asking this because in my application I have defined a language for each user, then when the session is created I want to get the current user language and set on the session parameters with oxf:scope-serializer. Therefore when user wants to view some page I will get the language from the session and select the correct resource file.

 

Is this possible? Or any other ideas on how I can implement multilanguage with Orbeon? DMV forms is a good example to learn but doesn’t deal with users and sessions.

 

 

Thanks,

Jordi



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Session creation

fl.schmitt(ops-users)
Hi Jordi,

> Is it possible to know the current user when the session is created?

Assuming your users have to autheticate themselves, the username is
available using the request-security Processor after successful
authentication:

http://www.orbeon.com/ops/doc/reference-authentication#request-security-processor

If there's no authentication, one could set a cookie "by hand". But i
don't know whether this is possible inside OF.

florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Session creation

Alessandro Vernet
Administrator
Florian,

On 5/7/07, Florian Schmitt <[hidden email]> wrote:
> If there's no authentication, one could set a cookie "by hand". But i
> don't know whether this is possible inside OF.

If there is no authentication, and no cookie has been set previously
for the current user, storing something in the session scope with the
Scope serializer will automatically create a cookie. BTW, this is
handled automatically by the servlet container (e.g. Tomcat), so
Orbeon Forms doesn't much work to do for this to work :).

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws