TruongGa
TruongGa

Reputation: 21

Cookie curl on two ec2s

My old project code is saving curl cookie to temporary file as below

curl_setopt($ch, CURLOPT_COOKIEJAR, dir_tmp);
curl_setopt($ch, CURLOPT_COOKIEFILE, dir_tmp);

it is running on 1 ec2

Now need to run on two ec2s with elb ec2 A and ec2 B, will saving like that cause curl cookie error

If not, does phalcon support saving cookie to database, I have not found a solution to be able to run the same code on two ec2s A and Ec2 B without curl cookie error

Hope to receive help

Upvotes: 0

Views: 40

Answers (0)

Related Questions