[rt-devel] Getting a cookie over to mason_handler.fcgi
Jesse Vincent
jesse at bestpractical.com
Sat May 25 18:09:20 EDT 2002
RT uses a "add header" method. have a look in mason_handler.fcgi....
(We do this in there for the session cookie)
On Sat, May 25, 2002 at 05:03:30PM -0500, Matt Disney wrote:
> Sorry if this is a stupid question, but how can I get a cookie passed
> over to mason_handler.fcgi? In trying to move from mod_perl to fastcgi,
> the only remaining roadblock is to figure out how to get some cookies
> set. With mod_perl, I was doing this in the INIT block:
>
> my $query = new CGI('');
> $c_cookie = $query->cookie(-name="Whatever",
> -value => "$ARGS{'Name'},
> -expires => '+15y',
> -path => '/' );
> $query->header(-cookie=>$c_cookie);
>
>
> But that doesn't work with fastcgi, apparently. So, after doing some
> digging, I realized there is a facility in mason_handler.fcgi for
> setting cookies. I just don't know how to get the information over
> there.
>
> Thanks,
> Matt
>
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
>
--
http://www.bestpractical.com/products/rt -- Trouble Ticketing. Free.
More information about the Rt-devel
mailing list