New Zenner
- Join Date:
- Jan 2009
- Location:
- Maryland
- Posts:
- 12
- Plugin Contributions:
- 0
Passing a hidden customer_id to another php file
I've written a utility program to read, filter, sort, and output information from a customized table in my ZC database. I need to be able to show ALL information to customers who have bought related products, but only show SOME information to others. This means my stand-alone php file needs to know the customer_id. I don't want to pass it as a parameter, because then my logged-in customers could just copy the URL and email it to a friend and get all the privileged information. How do I give a stand-alone php file access to $_SESSION['customer_id']?
I'm using ZenCart 1.3.8a with a several add-on module and numerous amateurish custom mods.
The utility program I'm running is here