Jump to content

Giles

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Giles

  1. FYI anyone else looking to implement Ryan's solution for authenticated ProcessWire pages: you can make the request via cURL and pass the cookies in along these lines: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://$_SERVER[HTTP_HOST]/path/to/content"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_COOKIE, $_SERVER['HTTP_COOKIE']); $content = curl_exec($ch); BIG CAVEAT: set $config->sessionFingerprinting to FALSE, or the code above will log your users out.
  2. Ryan, do you have any plans to resolve this kind of issue by namespacing your functions or similar? We have a similar issue and will probably "shell out" to a PW block for the integration as you suggested, but it definitely makes things more tricky.
×
×
  • Create New...