I have a script which logs you into zencart when you open it in your browser.
Now when I try to call this from inside another php script using require, header, or curl, it does not login to zencart. It only works when the user opens the php script dire开发者_开发问答ctly in their browser.
I also tried virtual(), but its running the index.php script for the top level of the site, not the file I specify. Thanks.
I got this working by reading the session from the database. Let me know if anyone is interested and I will open up a github. Thanks!
精彩评论