Curl cookie handling

后端 未结 2 851
野的像风
野的像风 2021-01-16 03:20

Is that possible that with cURL not every user use the same cookie?

Because it\'s cool that I store the cookie that I get, but this cookie will be used by everybody,

2条回答
  •  悲哀的现实
    2021-01-16 03:37

    Your question is unclear, do you want all user to use the same cookie or not ? What is an user in your case, a visitor on your website ?

    In any case, you can set which file curl will use to save/load its cookies using curl_setopt and the CURLOPT_COOKIE* constants.

提交回复
热议问题