Posted By

SmpleJohn on 02/23/10


Tagged

cookies


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SmpleJohn


Prestashop 1.2.5 Access cookies


 / Published in: PHP
 

Code to access Prestashop's cookies from outside of the system (on the same domain). The example is specifically for the userid.

  1. /* SSL Management */
  2. $useSSL = true;
  3.  
  4. include('../config/config.inc.php');
  5. include('../init.php');
  6. if ($cookie->isLogged()){
  7. $userid = intval($cookie->id_customer);
  8. }

Report this snippet  

You need to login to post a comment.