title: how can i fully load page after login?
body: <p>I using php and curl to login web site and access web page contains javascript and ajax, i want to fully load page before i return page.</p>
  
  <p>Is there another way to login the site and fully load web page contains ajax and etc ?</p>
  
  <p>Can I store the cookies inside Broswer and access to the page by php code(laravel) like that <code>return Redirect::to($url);</code></p>
  
  <pre><code>$username = 'xxx';
  $password = 'xxxx';
  $loginUrl = 'http://www.site/com/login.php';
  $url='http://www.site/com/wood.php';
  define("COOKIE_FILE", "c:\cookie.txt");
  
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $loginUrl);
  curl_setopt($curl, CURLOPT_COOKIESESSION, true);
  curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true);
  curl_setopt ($curl, CURLOPT_COOKIEJAR, COOKIE_FILE); 
  curl_setopt ($curl, CURLOPT_COOKIEFILE, COOKIE_FILE);
  curl_setopt( $curl, CURLOPT_COOKIE, COOKIE_FILE );
  curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
  curl_setopt ($curl, CURLOPT_ENCODING, "");
  curl_setopt ($curl, CURLOPT_HEADER, true);
  curl_setopt ($curl, CURLOPT_AUTOREFERER, true);
  curl_setopt($curl, CURLOPT_POST, true);
  curl_setopt($curl, CURLOPT_POSTFIELDS, 'username='.$username.'&amp;password='.$password);
  curl_setopt($curl, CURLOPT_VERBOSE, 0);
  curl_setopt($curl, CURLOPT_AUTOREFERER, true);
  curl_setopt($curl, CURLOPT_TIMEOUT, 120);
  curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 115);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  
  $store = curl_exec($curl);
  
  curl_setopt($curl, CURLOPT_URL, $url);
  
  $content = curl_exec($curl);
  
  curl_close($curl);
  </code></pre>
  
  <p><strong>Edit 1:</strong></p>
  
  <p><strong>i want to login web site and save cookie in browser programming, any one know how can i do that using any programming language php, javascript, c# etc ?</strong></p>