Welcome Guest, Not a member yet? Register   Sign In
Sessions + cURL = problem
#2

[eluser]a77icu5[/eluser]
Example
create_sess.php
Code:
session_start();
$_SESSION['my_sess'] = 'some session value';

the...you can run
Code:
http://localhost/create_sess.php

And that's great !...the session it's ok, but try doing this

Code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://localhost/create_sess.php');
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$content = curl_exec($ch);
curl_close($ch);

then...we got problems, the session is not set, why ?


Messages In This Thread
Sessions + cURL = problem - by El Forum - 12-19-2010, 03:00 PM
Sessions + cURL = problem - by El Forum - 12-20-2010, 12:23 PM
Sessions + cURL = problem - by El Forum - 12-20-2010, 01:02 PM
Sessions + cURL = problem - by El Forum - 03-08-2011, 08:58 AM
Sessions + cURL = problem - by El Forum - 03-08-2011, 08:17 PM
Sessions + cURL = problem - by El Forum - 05-12-2012, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB