Passing data to a post_action script

Igor Sysoev is at rambler-co.ru
Tue Jul 31 01:01:55 MSD 2007


On Fri, Jul 27, 2007 at 06:25:37PM +0100, Just Marc wrote:

> I am trying to pass data from our PHP authorizer script all the way down 
> to post_action, like so:
> 
> 1. fastcgi - php authorizer script - passing X-Accel-Redirect
> 2. the file gets sent to the user
> 3. Now using post_action to run another php script when the request ends
> 
> I need a way to transfer information (a key) from the 1st php script 
> down to the 2nd php script.  Passing it in a header would be good, any 
> other way should also work.
> 
> Some stuff I tried that didn't work::
> 
> fastcgi_param  PARAM_EXTRA_3    $upstream_http_x_session_id;
> or
> post_action /done/$upsteram_http_x_session_id
> 
> Any suggestions would be greatly appreciated.

   location /1st.php {
       ...
       post_action   /done;
   }

   location = /done {
       set    $id     $upstream_http_x_session_id;

       fastcgi_param  PARAM_EXTRA_3   $id;
   }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list