I'm not sure that I understand... Are you saying that it's not a possible to do this?

If this isn't a possibility, do you have any suggestions on something else to do?

On Mar 10, 2004, at 6:44 PM, Stas Bekman wrote:

James Taylor wrote:
I'm having difficulty getting my mod_perl scripts and then my non-mod_perl scripts reading cookies between each other. I have a mod_perl TransHandler that sets a cookie via Apache::Cookie, and then I have some scripts in my /cgi-bin that try and read the cookie using basic CGI::Cookie. It doesn't appear to be working whatsoever, as the Apache::Cookie script can't read any of the cookies set by CGI::Cookie and vice-versa. I tried ditching Apache::Cookie in the transhandler and using CGI::Cookie as well, but still the two can't see each other.
Any ideas what would cause something like this?

You can't do it this way. Since when you try to retrieve the cookie from your cgi, it reads the cookies from $ENV{HTTP_COOKIE} || $ENV{COOKIE}, whereas your TransHandler doesn't set those env-vars (one of the two), and that's what it should do. Moreover, most likely it should use $r->subprocess_env to do that, and not setting %ENV.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to