Hi All
I am facing a weird problem. The problem is I have deployed my e commerce application on server. On the server I am accessing my application with URL for example: www.ecommerce.com When I add a product to Cart and go to next product page and then its detail page, carts get empty I am not sure why. But when I try to access it with IP address instead of URL it works fine. May be I am missing some configuration. Please suggest Regards Gaurav |
Gaurav,
Look at your AJAX or the Browser request, IMO it is changing the port from secure to non-secure or non-secure to secure port. In turn it will change the sessionId. So you need to keep the request on the same port and then problem should solve then. Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Thu, May 20, 2010 at 4:29 PM, kaliagaurav <[hidden email]>wrote: > > Hi All > > I am facing a weird problem. > > The problem is I have deployed my e commerce application on server. > > On the server I am accessing my application with URL for example: > www.ecommerce.com > > When I add a product to Cart and go to next product page and then its > detail > page, carts get empty I am not sure why. > > But when I try to access it with IP address instead of URL it works fine. > > May be I am missing some configuration. > > Please suggest > > Regards > Gaurav > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2224293.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Thanks Rishi for the reply.
Navigating from one product details page to another does not changes the port (http to https or vice versa) but I can see new sessionid created in the Ofbiz Logs when I go to other product detail page. Please suggest Regards Gaurav |
In reply to this post by Gaurav kalia
can you created this on the demo-stable or Demo-trunk servers?
my first guess is you have cookies turned off. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> kaliagaurav sent the following on 5/20/2010 3:59 AM: > Hi All > > I am facing a weird problem. > > The problem is I have deployed my e commerce application on server. > > On the server I am accessing my application with URL for example: > www.ecommerce.com > > When I add a product to Cart and go to next product page and then its detail > page, carts get empty I am not sure why. > > But when I try to access it with IP address instead of URL it works fine. > > May be I am missing some configuration. > > Please suggest > > Regards > Gaurav |
I am using stable Ofbiz version 9.04.
But if you can tell from where i can control the cookies option. I can check. Regards Gaurav |
In reply to this post by BJ Freeman
have you tried this on
http://demo-stable.ofbiz.apache.org/ecommerce/ Cookies are enabled on the browser. http://www.cookiecentral.com/faq/ it saves me time if you include the original email. then I don't have to go search for it. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> kaliagaurav sent the following on 5/21/2010 2:52 AM: > I am using stable Ofbiz version 9.04. > > But if you can tell from where i can control the cookies option. I can > check. > > Regards > Gaurav |
In reply to this post by BJ Freeman
The problem is that I am getting a session id appended with the url like when I select any product: jsessionid=2D58D83246045C7F03078CE9847D65C.jvm1 but it gets changed when I move to another product. I guess it can be a cookie problem. Can anybody please let me know where can I disable/enable cookies in Ofbiz. Regards Gaurav On Thursday 20 May 2010 10:18 PM, BJ Freeman [via OFBiz] wrote: can you created this on the demo-stable or Demo-trunk servers? |
In reply to this post by BJ Freeman
Hi All
The problem is that I am getting a session id appended with the url like when I select any product: jsessionid=2D58D83246045C7F03078CE9847D65C.jvm1 but it gets changed when I move to another product. I guess it can be a cookie problem. Can anybody please let me know where can I disable/enable cookies in Ofbiz. Regards Gaurav On Thursday 20 May 2010 10:18 PM, BJ Freeman [via OFBiz] wrote: > can you created this on the demo-stable or Demo-trunk servers? > my first guess is you have cookies turned off. > > ========================= > BJ Freeman > http://bjfreeman.elance.com > Strategic Power Office with Supplier Automation > <http://www.businessesnetwork.com/automation/viewforum.php?f=93> > Specialtymarket.com <http://www.specialtymarket.com/> > > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>> > > > > kaliagaurav sent the following on 5/20/2010 3:59 AM: > > > Hi All > > > > I am facing a weird problem. > > > > The problem is I have deployed my e commerce application on server. > > > > On the server I am accessing my application with URL for example: > > www.ecommerce.com > > > > When I add a product to Cart and go to next product page and then > its detail > > page, carts get empty I am not sure why. > > > > But when I try to access it with IP address instead of URL it works > fine. > > > > May be I am missing some configuration. > > > > Please suggest > > > > Regards > > Gaurav > > > > > ------------------------------------------------------------------------ > View message @ > http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2224879.html > > To unsubscribe from Problem With Live deployment, click here > <http://ofbiz.135035.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=Z2F1cmF2LmthbGlhQHRlY2hibHVlLmNvLnVrfDIyMjQyOTN8LTEyODUyODkyNzA=>. > > |
In reply to this post by BJ Freeman
Cookies are enabled on the browser not in ofbiz. http://www.cookiecentral.com/faq/ ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> kaliagaurav sent the following on 5/21/2010 7:58 AM: > Hi All > > The problem is that I am getting a session id appended with the url like > when I select any product: > > jsessionid=2D58D83246045C7F03078CE9847D65C.jvm1 > > but it gets changed when I move to another product. > > I guess it can be a cookie problem. Can anybody please let me know where > can I disable/enable cookies in Ofbiz. > > Regards > Gaurav > > > On Thursday 20 May 2010 10:18 PM, BJ Freeman [via OFBiz] wrote: >> can you created this on the demo-stable or Demo-trunk servers? >> my first guess is you have cookies turned off. >> >> ========================= >> BJ Freeman >> http://bjfreeman.elance.com >> Strategic Power Office with Supplier Automation >> <http://www.businessesnetwork.com/automation/viewforum.php?f=93> >> Specialtymarket.com <http://www.specialtymarket.com/> >> >> Systems Integrator-- Glad to Assist >> >> Chat Y! messenger: bjfr33man >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>> >> >> >> >> kaliagaurav sent the following on 5/20/2010 3:59 AM: >> >>> Hi All >>> >>> I am facing a weird problem. >>> >>> The problem is I have deployed my e commerce application on server. >>> >>> On the server I am accessing my application with URL for example: >>> www.ecommerce.com >>> >>> When I add a product to Cart and go to next product page and then >> its detail >>> page, carts get empty I am not sure why. >>> >>> But when I try to access it with IP address instead of URL it works >> fine. >>> May be I am missing some configuration. >>> >>> Please suggest >>> >>> Regards >>> Gaurav >> >> >> >> ------------------------------------------------------------------------ >> View message @ >> http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2224879.html >> >> To unsubscribe from Problem With Live deployment, click here >> < (link removed) =>. >> >> > > |
In reply to this post by Gaurav kalia
Now you got the problem exactly, Please make use of
<@ofbizUrl>yourRequest</@ofbizUrl> in your ftl or from where ever you are calling any request. If you are switching the port then use <@ofbizUrl secure="${request.isSecure()?string}">. By doing this I'm bit sure your problem should be solve. I do not have any other solution for this problem. Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Fri, May 21, 2010 at 8:28 PM, kaliagaurav <[hidden email]>wrote: > > Hi All > > The problem is that I am getting a session id appended with the url like > when I select any product: > > jsessionid=2D58D83246045C7F03078CE9847D65C.jvm1 > > but it gets changed when I move to another product. > > I guess it can be a cookie problem. Can anybody please let me know where > can I disable/enable cookies in Ofbiz. > > Regards > Gaurav > > > On Thursday 20 May 2010 10:18 PM, BJ Freeman [via OFBiz] wrote: > > can you created this on the demo-stable or Demo-trunk servers? > > my first guess is you have cookies turned off. > > > > ========================= > > BJ Freeman > > http://bjfreeman.elance.com > > Strategic Power Office with Supplier Automation > > <http://www.businessesnetwork.com/automation/viewforum.php?f=93> > > Specialtymarket.com <http://www.specialtymarket.com/> > > > > Systems Integrator-- Glad to Assist > > > > Chat Y! messenger: bjfr33man > > < > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > > < > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > >> > > > > > > > > kaliagaurav sent the following on 5/20/2010 3:59 AM: > > > > > Hi All > > > > > > I am facing a weird problem. > > > > > > The problem is I have deployed my e commerce application on server. > > > > > > On the server I am accessing my application with URL for example: > > > www.ecommerce.com > > > > > > When I add a product to Cart and go to next product page and then > > its detail > > > page, carts get empty I am not sure why. > > > > > > But when I try to access it with IP address instead of URL it works > > fine. > > > > > > May be I am missing some configuration. > > > > > > Please suggest > > > > > > Regards > > > Gaurav > > > > > > > > > > ------------------------------------------------------------------------ > > View message @ > > > http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2224879.html > > > > To unsubscribe from Problem With Live deployment, click here > > < (link removed) =>. > > > > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2226279.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Hi Rishi
Thanks for the reply. I will try to find out if I missed "<@ofbizUrl>" anywhere in application. Regards Gaurav |
This post was updated on .
In reply to this post by Rishi Solanki
Hi Rishi
I have some links in header.ftl for different type of products category and all the product links are like this "<@ofbizUrl>productcategory</@ofbizUrl>". My findings are when I click on any of the product link created in header.ftl. I can still see that product in the cart but when I click on a product info link shown under that particular product category (header.ftl), carts get empty. So as per your advised I checked the product info link in productsummary.ftl: "${productUrl}" My question is do I need to add "<@ofbizUrl>" in above link as well ( "${productUrl}" )? Please suggest Regards Gaurav > Now you got the problem exactly, Please make use of > <@ofbizUrl>yourRequest</@ofbizUrl> in your ftl or from where ever you are > calling any request. If you are switching the port then use <@ofbizUrl > secure="${request.isSecure()?string}">. By doing this I'm bit sure your > problem should be solve. >I do not have any other solution for this problem. |
Hi Gaurav,
Inline. Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Wed, Jun 2, 2010 at 1:00 PM, kaliagaurav <[hidden email]>wrote: > > Hi Rishi > > I have some links in header.ftl for different type of products category and > all the product links are like this > "<@ofbizUrl>productcategory</@ofbizUrl>". > > My findings are when I click on any of the product link created in > header.ftl. I can still see that product in the cart but when I click on a > product info link shown under that particular product category > (header.ftl), > carts get empty. > > So as per your advised I checked the product info link in > productsummary.ftl: > > ${productUrl} > "<@ofbizContentUrl > ${contentPathPrefix?if_exists}${smallImageUrl}</@ofbizContentUrl>" > alt="Small Image"/> > > > My question is do I need to add "<@ofbizUrl>" in above link as well ( > ${productUrl} )? > No you do not need to do so, the ofbizUrl works for the text in similar way the ofbizContentUrl works for the images. So it is fine. > > Please suggest > > Regards > Gaurav > > > > > Now you got the problem exactly, Please make use of > > <@ofbizUrl>yourRequest</@ofbizUrl> in your ftl or from where ever you are > > calling any request. If you are switching the port then use <@ofbizUrl > > secure="${request.isSecure()?string}">. By doing this I'm bit sure your > > problem should be solve. > >I do not have any other solution for this problem. > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Problem-With-Live-deployment-tp2224293p2239682.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Hi Rishi
I tired that and it worked. Thanks a lot !!! Regards Gaurav |
Hi Gaurav,
What is final URL u put for such issue??? As I even face such problem sometimes.. Thanks this raising such issue..
RRH
|
Hi RRH
I have appended "<@ofbizUrl>../..</@ofbizUrl>" and now the link in code looks something like this "${productUrl}<@ofbizUrl>../..</@ofbizUrl>" in this way you ended up appending session id with your URL. HTH Regards Gaurav |
Free forum by Nabble | Edit this page |