开发者

Mimic browser hit from php script

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜