Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Message when cookies are disabled?

    Hallo,

    When a browser does not accept cookies, I have a problem ...

    Firefox issues the following message:

    The page isn't redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    * This problem can sometimes be caused by disabling or refusing to accept cookies.
    Internet explorer ( ) is indefinitely trying to do what it was asked, probably loading the server with unnecessary traffic. (Zen cart sends a cookie, explorer blocks it, zen cart sends another one, explorer blocks it ... for ever)

    Is it possible to have zen cart check if cookies are disabled, and -if so- cease any activity and inform the user that he must enable cookies?

    Kind regards,
    orange_juice

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Message when cookies are disabled?

    Sounds like you've got an addon installed or server configuration problem that's breaking normal operation.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Message when cookies are disabled?

    Indeed ...

    Thank you for your prompt reply.

    My cart's behavior is rather different that the original zen-cart in this issue.

    I will try to find out where the problem lies.

    However, I would very much like to prevent people from navigating in the site unless cookies are enabled.

    Would this be possible?

    Kind regards,
    orange_juice

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Message when cookies are disabled?

    Your time will be better sent figuring out what's causing the unnecessary redirects.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Message when cookies are disabled?

    Quote Originally Posted by orange_juice View Post

    inform the user that he must enable cookies?
    Sorry, I don't know the technical answer to your question (though Googling force cookie use might provide some answers), but if I have cookies disabled, I've done so for a reason, and I'd leave your site before I'd let you dictate how I operate my browser. Just my $.02 worth.

  6. #6
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Message when cookies are disabled?

    Quote Originally Posted by DrByte View Post
    Your time will be better sent figuring out what's causing the unnecessary redirects.
    Thanx, this is the proper thing to do.

    The issue should be lying at my host's configuration, because he uses lighttpd. Along with Simple SEO url those redirects initiate.

    I am currently talking through this issue with them.
    Quote Originally Posted by stevesh
    Sorry, I don't know the technical answer to your question (though Googling force cookie use might provide some answers), but if I have cookies disabled, I've done so for a reason, and I'd leave your site before I'd let you dictate how I operate my browser. Just my $.02 worth.
    Opinion respected. I apologize for the wording. At my second post, I made it better:

    However, I would very much like to prevent people from navigating in the site unless cookies are enabled.
    Nevertheless, I will try to cater for all users. This is the best, I agree.

    Kind regards,
    orange_juice

  7. #7
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Message when cookies are disabled?

    The issue of the redirects is solved now.

    It was caused by the default value of php for session.use_only_cookies which has changed from 0 to 1 at version 5.3.

    Kind regards,
    orange_juice

  8. #8
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Message when cookies are disabled?

    It is a security measure, and therefore the "Force cookies" option might be considered as a necessity?

    http://www.php.net/manual/en/session...e-only-cookies

    Sorry for the new post, I did not catch the 7 minutes limit!

    Kind regards,
    orange_juice

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Message when cookies are disabled?

    My server has session.use_only_cookies set to 1 and it works fine for me. I can browse the store, login, add items to my cart, complete checkout.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default Re: Message when cookies are disabled?

    Quote Originally Posted by DrByte View Post
    My server has session.use_only_cookies set to 1 and it works fine for me. I can browse the store, login, add items to my cart, complete checkout.
    How is this possible? Is there a special setting I have to make at the admin menu or the server?

    I have just installed a fresh zen-cart 1.3.9g with a demo store and I am trying to navigate with mozilla-firefox-3.6.9 in a linux gentoo environment.

    As expected, I get a ?zenid= ... at the end of my url.
    However, this number changes constantly after each click I make.

    Therefore, when I send something to the shopping cart, although I have a zenid number, I get a message "your shopping cart is empty" because the shopping cart's zenid is different than the one I had at the product's page.

    Combining this constant ?zenid number change, with the simple SEO url, we get infinite redirects.

    However, when I disable the session.use_only_cookies by setting it to 0, everything works like a charm.



    Kind regards,
    orange_juice

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Navigating with Sessions when Cookies are Disabled
    By gunnzo in forum General Questions
    Replies: 3
    Last Post: 17 Dec 2014, 07:44 PM
  2. Cookies disabled = lost transaction - PayPal ??
    By knightware in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 2 Mar 2011, 04:14 PM
  3. Replies: 2
    Last Post: 14 Jan 2011, 05:37 PM
  4. Replies: 4
    Last Post: 22 Oct 2008, 01:06 PM
  5. error message when credit card module disabled
    By jilly1217 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Nov 2006, 02:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg