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: Check external session before store loads

    There are lots more questions beyond those, that still need consideration. This whole issue is way larger than those few small things, and there's far too little detail about what you're ultimately trying to do here for me to give any answers suitable for use on a live site.
    .

    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
    Jun 2011
    Posts
    32
    Plugin Contributions
    0

    Default Re: Check external session before store loads

    Quote Originally Posted by DrByte View Post
    There are lots more questions beyond those, that still need consideration. This whole issue is way larger than those few small things, and there's far too little detail about what you're ultimately trying to do here for me to give any answers suitable for use on a live site.
    I want to limit zencart access to only users currently logged into kohana. I am using zencart 1.3.9 and php 5.2.10.

    Could you please tell me what are the larger issues you see?

  3. #13
    Join Date
    Jun 2011
    Posts
    32
    Plugin Contributions
    0

    Default Re: Check external session before store loads

    Quote Originally Posted by DrByte View Post
    There are lots more questions beyond those, that still need consideration. This whole issue is way larger than those few small things, and there's far too little detail about what you're ultimately trying to do here for me to give any answers suitable for use on a live site.
    Could you please suggest resources on what else would need access to zen cart which could be blocked?

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

    Default Re: Check external session before store loads

    What exactly are you trying to accomplish here? Why are you talking about cron jobs and authorize.net and curl and fopen and file_get_contents from outside Zen Cart?
    When you start talking about triggering payment systems from code running outside the store's code base, you raise zillions of security flags, and so on.

    Without having a solid understanding of what you're wanting to end up with, more specifically the bigger picture of the business issues you're trying to solve here and the detailed list of end-results you're targeting, I've very reluctant to send you off with technical information that could result in you creating security problems on your site.

    And, is this *your* site? Or merely some site you've been contracted to do some custom work for?
    .

    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. #15
    Join Date
    Jun 2011
    Posts
    32
    Plugin Contributions
    0

    Default Re: Check external session before store loads

    Quote Originally Posted by DrByte View Post
    What exactly are you trying to accomplish here? Why are you talking about cron jobs and authorize.net and curl and fopen and file_get_contents from outside Zen Cart?
    When you start talking about triggering payment systems from code running outside the store's code base, you raise zillions of security flags, and so on.

    Without having a solid understanding of what you're wanting to end up with, more specifically the bigger picture of the business issues you're trying to solve here and the detailed list of end-results you're targeting, I've very reluctant to send you off with technical information that could result in you creating security problems on your site.

    And, is this *your* site? Or merely some site you've been contracted to do some custom work for?
    It is for a contract. The client required an extensive list of zen cart modules to use with an existing script.

    The curl, fopen and file_get_contents was in reference to checking a kohana script on the same server but external to zencart, and allowing access to zen cart only if the user is logged into kohana. I am looking at setting an AES token in a cookie and a mysql record for each kohana request and checking it before each zen cart request to avoid interfering with the zen cart session.

    For cron, I am using this cim module for recurring payments.

    http://www.zen-cart.com/forum/showthread.php?t=112719

    I am allowing access to it only by command line by checking php_sapi_name() and a php token variable defined in the kohana script set only if the conditions for a recurring payment exists.
    Last edited by urgentprog; 19 Nov 2011 at 06:54 PM.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Check external session before store loads

    Quote Originally Posted by urgentprog View Post
    ... and a mysql record for each kohana request and checking it before each zen cart request to avoid interfering with the zen cart session.
    I suspect that's probably the most appropriate approach. Use the database as the determiner, and write code on both ends to set/check the database for validation both ways.
    .

    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 2 of 2 FirstFirst 12

Similar Threads

  1. Customer losing session while building options on external site
    By delia in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 16 Aug 2013, 02:31 PM
  2. v150 Check point list before opening store?
    By ninabell in forum General Questions
    Replies: 8
    Last Post: 5 Jul 2012, 07:30 PM
  3. break before checkout_success using external payment module addons
    By FrilansReklam in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 Jan 2009, 08:43 PM
  4. Replies: 13
    Last Post: 2 Nov 2008, 11:42 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