Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    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.

  5. #5
    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

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Message when cookies are disabled?

    Apparently your server is configured in such a way as to not properly set up sessions, thus pushing an invalid value into the session cookie, which then doesn't match what the server is expecting, which then forces it to put the zenid into the URL, which then your URL rewriting rules are turning into 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.

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

    Default Re: Message when cookies are disabled?

    When cookies are enabled:

    Everything works fine.


    When cookies are disabled and session.use_only_cookies=0:

    Everything works fine.


    When cookies are disabled and session.use_only_cookies=1:

    The ?zenid number changes in the url after each click.
    This happens at my home server, at my host's lighttpd server and at my host's apache - 2 server.


    session.use_only_cookies=1 by default at php 5.3
    session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP 5.3.0.
    Kind regards,
    orange_juice

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Message when cookies are disabled?

    Quote Originally Posted by orange_juice View Post
    When cookies are enabled:

    Everything works fine.
    As expected.
    Quote Originally Posted by orange_juice View Post
    When cookies are disabled and session.use_only_cookies=0:

    Everything works fine.
    As expected.
    Quote Originally Posted by orange_juice View Post
    When cookies are disabled and session.use_only_cookies=1:

    The ?zenid number changes in the url after each click.
    As expected.
    .
    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.

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

    Default Re: Message when cookies are disabled?

    Hallo again!

    I saw that when I set Force Cookie = true, a cookie named "cookie_test" is sent from my store which expires after one month.

    Would it cause any technical issue if I set this cookie to expire at the end of the session?

    Thank you for your help.

    Kind regards,
    orange_juice

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Message when cookies are disabled?

    It won't cause any technical issue. What specific reason do you have for wanting to change it?
    .
    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.

 

 
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