You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Nenad Steric <ne...@teleweb.at> on 2001/06/16 02:16:49 UTC

Re: Sending Cookies from Access-Handler - Update 2

Ok,
i tried the push_handlers with PerlFixupHandler,
as before this gets called also , 
i get an entry in my error_log (because i use $r->warn to log)
and again no cookie is being sent ...

For the record : i am using apache 1.3.20 and modperl 1.25

Do i have to do a redirect or something similar so that the browser
sets the cookie ?
Or do i have problems with the basic configuration of apache ?


Nenad Steric wrote:
> 
> I was wrong, there is no cookie being set at all.
> 
> So, what happens is that the handler gets called
> i get an entry in the error_log like
> "setting cookie Ticket=ID&1; ... expires=Sun, 15-Jul-2001 ..."
> and No Cookie being sent to the browser.
> 
> Is it possible to send cookies from the Accesshandler ? or am i wasting my time ?
> Should i use push_handlers and use another phase of the request ?
>

Re: Sending Cookies from Access-Handler - Fixed

Posted by Rodney Broom <rb...@home.com>.
Something else, I haven't used CGI's cookie handling, but I have used
Apache::Cookie. I know that this can be done from an AuthenHandler and from
a TransHandler.

---
Rodney Broom




Re: Sending Cookies from Access-Handler - Fixed

Posted by Nenad Steric <ne...@teleweb.at>.
Ok, 
i think i should really go to sleep now ...

It was using the wrong domain !
forgot to tell apache that it is called "www.my.com"
as i was sending cookies for ".my.com" ...

strangely under win32 this didn't work even with the right domain...

good night,

Nenad


> 
> Ok,
> i tried the push_handlers with PerlFixupHandler,
> as before this gets called also ,
> i get an entry in my error_log (because i use $r->warn to log)
> and again no cookie is being sent ...
> 
> For the record : i am using apache 1.3.20 and modperl 1.25
> 
> Do i have to do a redirect or something similar so that the browser
> sets the cookie ?
> Or do i have problems with the basic configuration of apache ?
> 
> Nenad Steric wrote:
> >
> > I was wrong, there is no cookie being set at all.
> >
> > So, what happens is that the handler gets called
> > i get an entry in the error_log like
> > "setting cookie Ticket=ID&1; ... expires=Sun, 15-Jul-2001 ..."
> > and No Cookie being sent to the browser.
> >
> > Is it possible to send cookies from the Accesshandler ? or am i wasting my time ?
> > Should i use push_handlers and use another phase of the request ?
> >