Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    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.

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

  3. #13
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    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.

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

    Default Re: Message when cookies are disabled?

    Thank you!

    This trend seems to imply that it is more secure for both the server and the client to accept the session cookie of zen-cart and set the browser to automatically delete it after the browser is closed, than to reject cookies and allow the session to be appended at the url.

    Therefore, I think the Configuration -> Sessions -> "Force Cookie" = true setting, is closer to what Google - Yahoo and other major websites with robust privacy policies accept as a sound and effective security measure.

    Kind regards,
    orange_juice

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

  6. #16
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    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.

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

    Default Re: Message when cookies are disabled?

    Thank you for your prompt answer.

    My thought is the following:

    I have set Force cookies = true and when someone with disabled cookies tries to log in or place something in his basket a message appears that notifies him of this policy.

    Since I "oblige" users to accept cookies, I would like to inform them of which cookies are stored into their computer from my site.

    There are two: cookie_test and zenid.

    zenid expires at the end of the session. I consider very nice and discreet to have cookie_test to expire at the end of the session too.

    This way, even the most sensitive user about cookies will feel that "I entered that store, they informed me that they make the most to keep my visit safe without collecting any personal data in cookies, and when I exited it was like I never entered because nothing was left in my hard disk."

    Kind regards,
    orange_juice

 

 
Page 2 of 2 FirstFirst 12

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR