Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    May 2011
    Location
    The Netherlands
    Posts
    4
    Plugin Contributions
    0

    Default Sign-on from another website?

    I am trying to setup a single sign-on from our main website which should also take care of the sign-on into Zencart. What should I do to ensure when users logon and then go to our shop (www.ncrs.org/shop) are logged in the shop as well?

    Is there an API I can use. I've tryed to start a session using the session functionality of ZenCart:
    Code:
        include_once('shop/includes/functions/functions_general.php');
        include_once('shop/includes/init_includes/init_sessions.php');
        zen_session_start();
    But this does not seems to work...

    I have also tried to set the cookie variable zenid and session variables customer_id and customer_ip_address and inserted a corresponding row in the sessions table with the session ID and expire time (time() + (365*24*3600)) although I don't know what to fill into the value column.
    Last edited by Rob Musquetier; 27 Jun 2014 at 11:26 AM.

 

 

Similar Threads

  1. Trying to clone from one website to another
    By flyspidert in forum General Questions
    Replies: 4
    Last Post: 27 Mar 2013, 07:08 PM
  2. Adding product to shopping cart from another website
    By badarac in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2010, 04:11 PM
  3. Copy A Website From One Domain To Another
    By DPM in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Sep 2009, 09:52 AM
  4. Putting products in my cart from another website
    By onlineshop1 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 28 Mar 2008, 07:23 AM
  5. how to open another website from...
    By rosetulip in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Apr 2007, 03:50 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