Session Data Sharing amongst WebApps

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

Session Data Sharing amongst WebApps

muralis
Hello All,

I am using Ofbiz 12.04. Am trying to implement a feature where a user can
goBack to the previous page. Used the "SaveLastView" feature and it works
well until the user is in the same WebApp.

When the user navigates to another webapp the SaveLastView Does not work.

On investigating realized that there is a new session created when the user
navigates into a new WebApp, and the new session Object does not hold the
SavedView of the previous session

I also realized there is an entity called UserLoginSessions, and this
entity is never populated.

Any help to share the SaveLastView amongst Webapps (sessions) much
appreciated

Thanks.
Reply | Threaded
Open this post in threaded view
|

Proposition for a minor improvement of french translation

Montalbano Florian
Hello all,
it's a small thing but in the accounting component, for a "In-Process"
invoice, there is this menu choice "Echéances" in the french langage
option (Terms in english). This lead to think that you can only edit the
due date of the invoice.
I'm not an expert in the invoicing vocabulary so I did some research and
didn't find the good match for this translation.

This button leads to a page where you can add conditions to the invoice.
Given the translation in the other langage, I propose the french
translation to be "Conditions" instead.

What do you think of this proposition ?

I don't know if there is a specific mailing list for discussion on
translation. Tell me if there is one so I can use it for the next times.

Thanks,
Have a nice day.

Florian
Reply | Threaded
Open this post in threaded view
|

Re: Proposition for a minor improvement of french translation

Jacques Le Roux
Administrator
Hi Florian,

Inline...


Le 09/05/2016 à 17:40, Montalbano Florian a écrit :
> Hello all,
> it's a small thing but in the accounting component, for a "In-Process" invoice, there is this menu choice "Echéances" in the french langage option
> (Terms in english). This lead to think that you can only edit the due date of the invoice.
> I'm not an expert in the invoicing vocabulary so I did some research and didn't find the good match for this translation.
>
> This button leads to a page where you can add conditions to the invoice. Given the translation in the other langage, I propose the french
> translation to be "Conditions" instead.
>
> What do you think of this proposition ?

I agree ("condition de facturation" semble en effet être la meilleure traduction pour "invoice term")

>
> I don't know if there is a specific mailing list for discussion on translation. Tell me if there is one so I can use it for the next times.

Nope, dev would be a better place but here is OK

Thanks

Jacques

>
> Thanks,
> Have a nice day.
>
> Florian
>

Reply | Threaded
Open this post in threaded view
|

Re: Session Data Sharing amongst WebApps

Divesh Dutta-2
In reply to this post by muralis
Hi Murali,

Sessions between two web applications cannot be shared and this is done by
design for security reasons. This is part of Apache server specification
and not specific to OFBiz. In OFBiz, when web app is changed and  you use
externalLoginKey as a parameter and send it in URL , new session is not
created and same userLogin is used.

Now talking about saveLastView in OFBiz, I think it is not currently
supported that you can save last view among multiple web-applications. I
have not looked much into the code, but you can try using externalLoginKey
and see if saveLastView works. If it works, you will also have to make sure
that request which you want to save exists in both (the one in which you
are using and the other to which you navigated) the  web applications.

Thanks
--
Divesh Dutta.

On Fri, May 6, 2016 at 7:01 PM, Murali Shankar Gopalakrishnan <
[hidden email]> wrote:

> Hello All,
>
> I am using Ofbiz 12.04. Am trying to implement a feature where a user can
> goBack to the previous page. Used the "SaveLastView" feature and it works
> well until the user is in the same WebApp.
>
> When the user navigates to another webapp the SaveLastView Does not work.
>
> On investigating realized that there is a new session created when the user
> navigates into a new WebApp, and the new session Object does not hold the
> SavedView of the previous session
>
> I also realized there is an entity called UserLoginSessions, and this
> entity is never populated.
>
> Any help to share the SaveLastView amongst Webapps (sessions) much
> appreciated
>
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: Session Data Sharing amongst WebApps

muralis
Thank you Divesh for your response.

I was thinking if we can replicated the session Attributes
(_SAVED_LAT_VIEW_) in other User sessions in the Request Handler , by
caching the user specific sessions in UtilCache.... Not too sure what will
be replications on this from concurrency perspective. Thoughts ? Reaction
from other users on this need ?

Also curious to know the use of UserLoginSessions Entity. I saw this being
cleared up (Deleted) during Session Destruction, but never inserted. May be
another place to use to share session data except that that this will carry
the additional overhead of Persistance, which I thought is not required.


Thanks.



On Wed, May 18, 2016 at 5:23 PM, Divesh Dutta <
[hidden email]> wrote:

> Hi Murali,
>
> Sessions between two web applications cannot be shared and this is done by
> design for security reasons. This is part of Apache server specification
> and not specific to OFBiz. In OFBiz, when web app is changed and  you use
> externalLoginKey as a parameter and send it in URL , new session is not
> created and same userLogin is used.
>
> Now talking about saveLastView in OFBiz, I think it is not currently
> supported that you can save last view among multiple web-applications. I
> have not looked much into the code, but you can try using externalLoginKey
> and see if saveLastView works. If it works, you will also have to make sure
> that request which you want to save exists in both (the one in which you
> are using and the other to which you navigated) the  web applications.
>
> Thanks
> --
> Divesh Dutta.
>
> On Fri, May 6, 2016 at 7:01 PM, Murali Shankar Gopalakrishnan <
> [hidden email]> wrote:
>
> > Hello All,
> >
> > I am using Ofbiz 12.04. Am trying to implement a feature where a user can
> > goBack to the previous page. Used the "SaveLastView" feature and it works
> > well until the user is in the same WebApp.
> >
> > When the user navigates to another webapp the SaveLastView Does not work.
> >
> > On investigating realized that there is a new session created when the
> user
> > navigates into a new WebApp, and the new session Object does not hold the
> > SavedView of the previous session
> >
> > I also realized there is an entity called UserLoginSessions, and this
> > entity is never populated.
> >
> > Any help to share the SaveLastView amongst Webapps (sessions) much
> > appreciated
> >
> > Thanks.
> >
>