Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: persistent zenid and logout problem

    Yes, it is possible that going to the main page with cookies disabled will dump your cart contents, since in "some" cases, there is no zenid applied to the "home" link.

    Simple solution: don't do that.
    More complicated solution: Change all the "home" links to be generated via zen_href_link() instead of the prettier-displayed links produced by HTTP_SERVER+DIR_WS_CATALOG. This way you can satisfy the 2% of users who are too scared to have cookies enabled in their browser even though they're not too scared to share their credit card online while shopping.
    .

    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
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Hmmm. "They all do that sir"!

    I hear you on the security choices our customer make, but it's pretty inexplicable for the customer to have his data dumped on some pages and not others.

    Not sure why that should be.

    Anyway, taking your suggestion, I had searched for the link before I posted, and I found this in mytemplate\common\tpl_header.php:
    Code:
        <div id="logoWrapper">
            <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir("logo.gif", DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . "logo.gif", HEADER_ALT_TEXT) . '</a>'; ?></div>
        </div>
    Is this where I'd need to make the change?

    When you say prettier-displayed links, what would be the difference in how the links look to the customer, and how do I change them to make them work for cookies off (I've seen about a quarter of my browsers (excluding spiders) using cookies-off)
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: persistent zenid and logout problem

    Code:
    '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
    becomes
    Code:
    zen_href_link(FILENAME_DEFAULT);
    Your "home" link will change from: www.mysite.com/store
    to the longer: www.mysite.com/store/index.php?main_page=index&zenid=2452452525
    .

    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
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Thanks,
    But can I include my logo and alt text in the link, as they are in the standard setup?

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir("logo.gif", DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . "logo.gif", HEADER_ALT_TEXT) . '</a>'; ?></div>

    I've looked for a way to pass zen_href_link an image, or a way to pass zen_image a link, to no avail.


    This of course will not work as the zen link is comlplete and self contained:

    <div id="logo"><?php echo zen_href_link(FILENAME_DEFAULT) . zen_image($template->get_template_dir("logo.gif", DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . "logo.gif", HEADER_ALT_TEXT) . '</a>'; ?></div>
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

  5. #15
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: persistent zenid and logout problem

    my bad ...

    Code:
    '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
    becomes
    Code:
    '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">';
    ... need more coffee ...
    .

    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.

  6. #16
    Join Date
    Oct 2006
    Location
    Christchurch, New Zealand
    Posts
    44
    Plugin Contributions
    0

    Default Re: persistent zenid and logout problem

    Thanks Dr Byte, I could have looked at that a little closer too!

    It's working now.

    Cheers
    bikemike
    'If language is not used correctly, what is said is not what is meant. If what is said is not what is meant, what ought to be done remains undone' Kǒng fū zǐ

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 6 Apr 2008, 01:57 AM
  2. Developing for Zen Cart - persistent data and autoloaders
    By mikedeezy33 in forum General Questions
    Replies: 2
    Last Post: 16 Dec 2007, 07:22 AM
  3. Login/Logout Problem
    By Morris in forum General Questions
    Replies: 13
    Last Post: 8 Jul 2006, 07:44 PM

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