Root domain shopping cart

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

Root domain shopping cart

Ofbiz 开发
Hi everyone,

Could someone help me on this please?

At the moment when the shopping cart is created on www.example.com, when
the user browse to another subdomain, say abc.example.com, he will lose the
shopping cart, is it because the session is tied to the subdomain please?

Is there a way to make the session tied to the root domain
example.complease? Or how can I go about make the shopping cart cross
sub-domains
please? Thank you very much.

Kind Regards

Fong
Reply | Threaded
Open this post in threaded view
|

Re: Root domain shopping cart

Mandeep Sidhu
I believe you can do so by passing the jsessionid as one of the query
parameters when the redirect is happening.

Mandeep


On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发 <[hidden email]> wrote:

> Hi everyone,
>
> Could someone help me on this please?
>
> At the moment when the shopping cart is created on www.example.com, when
> the user browse to another subdomain, say abc.example.com, he will lose
> the
> shopping cart, is it because the session is tied to the subdomain please?
>
> Is there a way to make the session tied to the root domain
> example.complease? Or how can I go about make the shopping cart cross
> sub-domains
> please? Thank you very much.
>
> Kind Regards
>
> Fong
>



--
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com
Reply | Threaded
Open this post in threaded view
|

Re: Root domain shopping cart

Ofbiz 开发
Hi Mandeep,

Thank you very much. I am new to OFBIZ.

I searched online and found that since Tomcat 6 you can specify the session
cookie domain to be on root domain, by adding

<Context sessionCookieDomain=".mydomain.com" sessionCookiePath="/">

According to Tomcat 7's document this is best to be added to the
context.xml  ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html )

However I can't seem to find context.xml in OFBIZ. The CATALINA_HOME is
$OFBIZ_HOME/runtime/catalina  and CATALINA_BASE is $OFBIZ_HOME, and a
default context.xml is normally in $CATALINA_BASE/conf/context.xml

So could I create a new folder "conf" under OFBIZ_HOME and add a
context.xml in it please? Would that work for OFBIZ? Thank you very much.

Kind Regards

Fong




On Wed, Jul 3, 2013 at 2:12 AM, Mandeep Sidhu <[hidden email]>wrote:

> I believe you can do so by passing the jsessionid as one of the query
> parameters when the redirect is happening.
>
> Mandeep
>
>
> On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发 <[hidden email]> wrote:
>
> > Hi everyone,
> >
> > Could someone help me on this please?
> >
> > At the moment when the shopping cart is created on www.example.com, when
> > the user browse to another subdomain, say abc.example.com, he will lose
> > the
> > shopping cart, is it because the session is tied to the subdomain please?
> >
> > Is there a way to make the session tied to the root domain
> > example.complease? Or how can I go about make the shopping cart cross
> > sub-domains
> > please? Thank you very much.
> >
> > Kind Regards
> >
> > Fong
> >
>
>
>
> --
> Regards,
> Mandeep Singh Sidhu
> http://www.simbacart.com (ofbiz based)
> http://www.sidsol.com
>
Reply | Threaded
Open this post in threaded view
|

Re: Root domain shopping cart

Mandeep Sidhu
I am not so sure about that, perhaps you should read more about tomcat's
integration with ofbiz.

I see that under framework/catalina but like I said, not so sure

Regards,
Mandeep


On Tue, Jul 2, 2013 at 7:34 PM, Ofbiz 开发 <[hidden email]> wrote:

> Hi Mandeep,
>
> Thank you very much. I am new to OFBIZ.
>
> I searched online and found that since Tomcat 6 you can specify the session
> cookie domain to be on root domain, by adding
>
> <Context sessionCookieDomain=".mydomain.com" sessionCookiePath="/">
>
> According to Tomcat 7's document this is best to be added to the
> context.xml  ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html)
>
> However I can't seem to find context.xml in OFBIZ. The CATALINA_HOME is
> $OFBIZ_HOME/runtime/catalina  and CATALINA_BASE is $OFBIZ_HOME, and a
> default context.xml is normally in $CATALINA_BASE/conf/context.xml
>
> So could I create a new folder "conf" under OFBIZ_HOME and add a
> context.xml in it please? Would that work for OFBIZ? Thank you very much.
>
> Kind Regards
>
> Fong
>
>
>
>
> On Wed, Jul 3, 2013 at 2:12 AM, Mandeep Sidhu <[hidden email]
> >wrote:
>
> > I believe you can do so by passing the jsessionid as one of the query
> > parameters when the redirect is happening.
> >
> > Mandeep
> >
> >
> > On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发 <[hidden email]> wrote:
> >
> > > Hi everyone,
> > >
> > > Could someone help me on this please?
> > >
> > > At the moment when the shopping cart is created on www.example.com,
> when
> > > the user browse to another subdomain, say abc.example.com, he will
> lose
> > > the
> > > shopping cart, is it because the session is tied to the subdomain
> please?
> > >
> > > Is there a way to make the session tied to the root domain
> > > example.complease? Or how can I go about make the shopping cart cross
> > > sub-domains
> > > please? Thank you very much.
> > >
> > > Kind Regards
> > >
> > > Fong
> > >
> >
> >
> >
> > --
> > Regards,
> > Mandeep Singh Sidhu
> > http://www.simbacart.com (ofbiz based)
> > http://www.sidsol.com
> >
>



--
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com
Reply | Threaded
Open this post in threaded view
|

Re: Root domain shopping cart

叶双明
Maybe you can run ofbiz under a stanalone appserver.


2013/7/4 Mandeep Sidhu <[hidden email]>

> I am not so sure about that, perhaps you should read more about tomcat's
> integration with ofbiz.
>
> I see that under framework/catalina but like I said, not so sure
>
> Regards,
> Mandeep
>
>
> On Tue, Jul 2, 2013 at 7:34 PM, Ofbiz 开发 <[hidden email]> wrote:
>
> > Hi Mandeep,
> >
> > Thank you very much. I am new to OFBIZ.
> >
> > I searched online and found that since Tomcat 6 you can specify the
> session
> > cookie domain to be on root domain, by adding
> >
> > <Context sessionCookieDomain=".mydomain.com" sessionCookiePath="/">
> >
> > According to Tomcat 7's document this is best to be added to the
> > context.xml  (
> http://tomcat.apache.org/tomcat-7.0-doc/config/context.html)
> >
> > However I can't seem to find context.xml in OFBIZ. The CATALINA_HOME is
> > $OFBIZ_HOME/runtime/catalina  and CATALINA_BASE is $OFBIZ_HOME, and a
> > default context.xml is normally in $CATALINA_BASE/conf/context.xml
> >
> > So could I create a new folder "conf" under OFBIZ_HOME and add a
> > context.xml in it please? Would that work for OFBIZ? Thank you very much.
> >
> > Kind Regards
> >
> > Fong
> >
> >
> >
> >
> > On Wed, Jul 3, 2013 at 2:12 AM, Mandeep Sidhu <[hidden email]
> > >wrote:
> >
> > > I believe you can do so by passing the jsessionid as one of the query
> > > parameters when the redirect is happening.
> > >
> > > Mandeep
> > >
> > >
> > > On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发 <[hidden email]> wrote:
> > >
> > > > Hi everyone,
> > > >
> > > > Could someone help me on this please?
> > > >
> > > > At the moment when the shopping cart is created on www.example.com,
> > when
> > > > the user browse to another subdomain, say abc.example.com, he will
> > lose
> > > > the
> > > > shopping cart, is it because the session is tied to the subdomain
> > please?
> > > >
> > > > Is there a way to make the session tied to the root domain
> > > > example.complease? Or how can I go about make the shopping cart cross
> > > > sub-domains
> > > > please? Thank you very much.
> > > >
> > > > Kind Regards
> > > >
> > > > Fong
> > > >
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Mandeep Singh Sidhu
> > > http://www.simbacart.com (ofbiz based)
> > > http://www.sidsol.com
> > >
> >
>
>
>
> --
> Regards,
> Mandeep Singh Sidhu
> http://www.simbacart.com (ofbiz based)
> http://www.sidsol.com
>



--
叶双明