Hi,

Would someone have a minute to help me diagnose the following undesired
behavior?  

In my httpd.conf I have

ServerName mydomain.tld
ServerAlias www.mydomain.tld
PerlSetVar  SiteName  strait
<LocationMatch "\.html$">
   SetHandler perl-script
   PerlHandler MyApp::Mason
   DefaultType text/html
</LocationMatch>

In Mason.pm I have
$ah{strait} = HTML::Mason::ApacheHandler->new
   ( 
   ...
   request_class => 'MasonX::Request::WithApacheSession',
   session_use_cookie => 1,
   ...
   )

sub handler {
   my ($r) = @_;
   my $site = $r->dir_config('SiteName');
   return Apache::Constants::DECLINED unless exists $ah{$site};
   return $ah{$site}->handle_request($r);
   }


My problem:  When I point my browser to the server name, mydomain.tld,
a cookie is set, but if I point my browser to the server alias,
www.mydomain.tld, the cookie is not set.

Why is this happening and how can I make sure the cookie always gets
set?

Thank you.

Mark


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to