Umm, sanity check: You _have_ checked out the many packages and modules
that do just this under mod_perl, haven't you?

On 16 Jan 2003, Vishal Verma wrote:

> > Though it's probably not as fast as adjusting the headers via the api in 
> > the response handlers. However since you aren't telling what you are 
> > trying to do I can't give you a better advice.
> 
> Here's what I'm trying to do:
> 
> I am implementing a login/logout mechanism. The user can't access any
> page till he logs in. That is any attempt to access pages without
> logging in will be redirected to the login screen. I have successfully
> implemented this part. The login page is generated by a CGI script. Once
> the user logs in successfully, I want to set a cookie. That's the reason
> why I want the login CGI script to pass the result to my handler. The
> handler, which must be run after the CGI script has been run, will
> decide to modify the output header (to set cookie) depending upon the
> result code passed to it by the login screen.
> 
> I have read all the documentation about handlers etc., and couldn't find
> a way to do this. I know about notes/pnotes, but aren't they for passing
> values from one handler to other. How can my CGI script use them? And if
> it is possible for my CGI script to use them, would that be safe when
> multiple users are trying to log in?
> 
> One more question. I redirect the incoming request by calling
> $r->uri($new_uri) in my PerlTransHandler. How can I make the browser
> show this new location in its address bar?
> 
> Let me know if you need to know more about any aspect of my
> implementation. And, thanks for your help.
> 
> -vish
> 
> 

- nick

~~~~~~~~~~~~~~~~~~~~   
Nick Tonkin   {|8^)>


Reply via email to