Re: Cookies and redirection

2001-06-26 Thread darren chamberlain
Glen Small <[EMAIL PROTECTED]> said something to this effect on 06/26/2001: > I'm having some problem setting a cookie in a logon script i > have. The code work fine as a CGI, and also under mod)perl, > however, I want to set a cookie during the login script, and > then redirect the browser to an

Cookies and redirection

2001-06-26 Thread Glen Small
All,   I'm having some problem setting a cookie in a logon script i have.  The code work fine as a CGI, and also under mod)perl, however, I want to set a cookie during the login script, and then redirect the browser to another page.  When I enter the code below into the mod_perl script, the

Re: Cookies and redirection

2000-05-09 Thread Autarch
On Tue, 9 May 2000, Alex Menendez wrote: > not completely sure about real mod_perl. However, the following works > great using Apache::Registry and CGI: > > print $query->header(-cookie=>[$id_cookie,$crypt_cookie], > >-Location=>$query->param("redirect").'?name='.@$ref[1].'&last_login='.@$ref[

Re: Cookies and redirection

2000-05-09 Thread Rodney Broom
- Original Message - From: "Robin Berjon" <[EMAIL PROTECTED]> > >On Tue, 9 May 2000, Robin Berjon wrote: > >> Isn't there a work-around consisting of making 100% sure the cookie is sent > >> before the Location header ? Sure: Set cookie; if Reread_cookie do somthing good else do s

Re: Cookies and redirection

2000-05-09 Thread Robin Berjon
At 08:53 09/05/2000 -0700, Perrin Harkins wrote: >On Tue, 9 May 2000, Robin Berjon wrote: >> Isn't there a work-around consisting of making 100% sure the cookie is sent >> before the Location header ? > >Not with MSIE. At least it didn't work for me. Works here for me with msie 4 and 5.1 on win9

Re: Cookies and redirection

2000-05-09 Thread Alex Menendez
not completely sure about real mod_perl. However, the following works great using Apache::Registry and CGI: print $query->header(-cookie=>[$id_cookie,$crypt_cookie], -Location=>$query->param("redirect").'?name='.@$ref[1].'&last_login='.@$ref[3].'&site_id='.$query-> param('site_id')); I think A

Re: Cookies and redirection

2000-05-09 Thread Wim Kerkhoff
On 09-May-2000 Perrin Harkins wrote: > Bill Desjardins wrote: >> I checked the archives and the guide to no avail, so here goes. I am >> having trouble setting a cookie in the header and then doing a >> redirect. The cookies are working fine every where, but if I add a cookie >> to $r->headers_ou

Re: Cookies and redirection

2000-05-09 Thread Perrin Harkins
On Tue, 9 May 2000, Robin Berjon wrote: > At 00:13 09/05/2000 -0700, Perrin Harkins wrote: > >Bill Desjardins wrote: > >> I checked the archives and the guide to no avail, so here goes. I am > >> having trouble setting a cookie in the header and then doing a > >> redirect. The cookies are working

Re: Cookies and redirection

2000-05-09 Thread Robin Berjon
At 00:13 09/05/2000 -0700, Perrin Harkins wrote: >Bill Desjardins wrote: >> I checked the archives and the guide to no avail, so here goes. I am >> having trouble setting a cookie in the header and then doing a >> redirect. The cookies are working fine every where, but if I add a cookie >> to $r->

Re: Cookies and redirection

2000-05-09 Thread Perrin Harkins
Bill Desjardins wrote: > I checked the archives and the guide to no avail, so here goes. I am > having trouble setting a cookie in the header and then doing a > redirect. The cookies are working fine every where, but if I add a cookie > to $r->headers_out->add(), set a location via $r->headers_out

Re: Cookies and redirection

2000-05-03 Thread Doug MacEachern
On Tue, 2 May 2000, Bill Desjardins wrote: > Hi all, > > I checked the archives and the guide to no avail, so here goes. I am > having trouble setting a cookie in the header and then doing a > redirect. The cookies are working fine every where, but if I add a cookie > to $r->headers_out->add(),

Re: Cookies and redirection

2000-05-02 Thread Adi
Did you call $r->send_http_header before you returned REDIRECT ? Cookies reside in the HTTP header, so you need to send it. Bill Desjardins wrote: > > Hi all, > > I checked the archives and the guide to no avail, so here goes. I am > having trouble setting a cookie in the header and then doin

Cookies and redirection

2000-05-01 Thread Bill Desjardins
Hi all, I checked the archives and the guide to no avail, so here goes. I am having trouble setting a cookie in the header and then doing a redirect. The cookies are working fine every where, but if I add a cookie to $r->headers_out->add(), set a location via $r->headers_out(Location => 'newrui')