isn't this what a session.inc is for? There you won't have drupal_http_request, but you could include the file (common.inc?) or you could use curl? I brought this up here as well for bakery: <a href="http://drupal.org/node/574084">http://drupal.org/node/574084</a><br>
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Message: 3<br>
Date: Mon, 15 Mar 2010 23:28:34 +0100<br>
From: "Daniel F. Kudwien" <<a href="mailto:news@unleashedmind.com">news@unleashedmind.com</a>><br>
Subject: Re: [development] Hook_init issue<br>
To: <<a href="mailto:development@drupal.org">development@drupal.org</a>><br>
Message-ID: <00f101cac48e$d9beca00$<a href="mailto:0200a8c0@structworks.com">0200a8c0@structworks.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
<br>
function crazyauth_boot() {<br>
require_once './includes/common.inc';<br>
drupal_http_request(...);<br>
}<br>
<br>
<br>
________________________________<br>
<br>
From: <a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org</a><br>
[mailto:<a href="mailto:development-bounces@drupal.org">development-bounces@drupal.org</a>] On Behalf Of nan wich<br>
Sent: Monday, March 15, 2010 11:23 PM<br>
To: development<br>
Subject: [development] Hook_init issue<br>
<br>
<br>
It's back to the drawing board...<br>
<br>
I have a module that uses hook_init to check for the presence of a<br>
particular cookie. If it is there, then I call an external authentication<br>
server (this is mandatory at this customer). This all works fine until...<br>
<br>
We turn page caching on and all of a sudden, no more hook_init.<br>
Okay, read the fine print and it says that's what is supposed to happen.<br>
<br>
So I switched to hook_boot. Well, apparently is does excute, but the<br>
drupal_http_request in the authentication function says there is no such<br>
animal.<br>
<br>
We would really like to turn caching on, but we must have this<br>
authentication check too. For the moment we can turn caching off, but one<br>
week into the site and we are already taxing the server with traffic.<br>
<br>
Options?<br>
<br>
<br>
Nancy E. Wichmann, PMP<br>
<br>
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin<br>
L. King, Jr.<br>
<br></blockquote></div>-- <br>Scott Reynolds<br><br>