Share session information between modules?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Share session information between modules?

david.cuenca
I would like to know if we can share information between ofbiz modules
as if they were a unique webapp, as if the modules were sharing the same
session.
Ofbiz uses the externalLoginKey to know if a user has to log-in when he
requests a new module. But, besides, I would like to have the same
session information each time I change between modules.
It is true that each module/webapp has its own session and the
information cannot be shared between them?
Reply | Threaded
Open this post in threaded view
|

Re: Share session information between modules?

Adrian Crum
Each of the OFBiz components is a web app, and as such they each have their own session. That is how
the j2ee spec works.

You can share session information between components, but that would be outside the best practices.

It would be preferable to persist information that is shared between sessions - with each session
retrieving the shared data. A good example of this is how the user-selected locale and time zone is
maintained by the framework.

-Adrian

David Cuenca wrote:
> I would like to know if we can share information between ofbiz modules
> as if they were a unique webapp, as if the modules were sharing the same
> session.
> Ofbiz uses the externalLoginKey to know if a user has to log-in when he
> requests a new module. But, besides, I would like to have the same
> session information each time I change between modules.
> It is true that each module/webapp has its own session and the
> information cannot be shared between them?
>
Reply | Threaded
Open this post in threaded view
|

Re: Share session information between modules?

Jacques Le Roux
Administrator
You may also have a look at how the ShoppinCart works

Jacques

De : "Adrian Crum" <[hidden email]>

> Each of the OFBiz components is a web app, and as such they each have their own session. That is how
> the j2ee spec works.
>
> You can share session information between components, but that would be outside the best practices.
>
> It would be preferable to persist information that is shared between sessions - with each session
> retrieving the shared data. A good example of this is how the user-selected locale and time zone is
> maintained by the framework.
>
> -Adrian
>
> David Cuenca wrote:
> > I would like to know if we can share information between ofbiz modules
> > as if they were a unique webapp, as if the modules were sharing the same
> > session.
> > Ofbiz uses the externalLoginKey to know if a user has to log-in when he
> > requests a new module. But, besides, I would like to have the same
> > session information each time I change between modules.
> > It is true that each module/webapp has its own session and the
> > information cannot be shared between them?
> >
Reply | Threaded
Open this post in threaded view
|

Re: Share session information between modules?

david.cuenca
What makes userLogin to be in session always? The userLogin attribute is
in session when you change of module!
In some sense that mechanism makes information to be shared between sessions

Thanks,
David Cuenca

Jacques Le Roux wrote:

> You may also have a look at how the ShoppinCart works
>
> Jacques
>
> De : "Adrian Crum" <[hidden email]>
>  
>> Each of the OFBiz components is a web app, and as such they each have their own session. That is how
>> the j2ee spec works.
>>
>> You can share session information between components, but that would be outside the best practices.
>>
>> It would be preferable to persist information that is shared between sessions - with each session
>> retrieving the shared data. A good example of this is how the user-selected locale and time zone is
>> maintained by the framework.
>>
>> -Adrian
>>
>> David Cuenca wrote:
>>    
>>> I would like to know if we can share information between ofbiz modules
>>> as if they were a unique webapp, as if the modules were sharing the same
>>> session.
>>> Ofbiz uses the externalLoginKey to know if a user has to log-in when he
>>> requests a new module. But, besides, I would like to have the same
>>> session information each time I change between modules.
>>> It is true that each module/webapp has its own session and the
>>> information cannot be shared between them?
>>>
>>>