[rt-devel] Getting a cookie over to mason_handler.fcgi

Matt Disney matthew.disney at fedex.com
Sat May 25 18:42:31 EDT 2002

To an extent, this entire issue actually boils down to the fact 
that mason_handler.fcgi prints out the Content-Type string and
does the cookie setting for each page. Which is not a bad thing
at all. I just can't set cookies through other devices unless I'm
willing to have the Content-Type string displayed on the page, 
which I'm not. 

Even after taking a second look, it isn't clear how I could pass
a cookie over to mason_handler.fcgi. Are there any other RT pages
that do this? 

Of course, will the line:
    print "Set-Cookie: $cookie\r\n" if ($cookie);

only add one cookie? Will this work if $cookie is a list? If not,
I could have a much bigger problem...

Does that make any sense?


Jesse Vincent writes:
>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.
>rt-devel mailing list
>rt-devel at lists.fsck.com

More information about the Rt-devel mailing list