seriously, I am attempting to maintain MasonX::Request::WithApacheSession and have torn nearly every part of it apart..
And I had to get it working for myself, I think I found an old reference to it somewhere on google, but that was better than a year ago.
Glad It Helped,
Rodney
On 1/3/06, Mark Copper <[EMAIL PROTECTED]> wrote:
Thanks. That works.
May I ask, how did you know that? (I see it mentioned, but not
explained, in the Apache::Session::Wrapper docs).
Mark
On Tue, Jan 03, 2006 at 02:23:28PM -0700, Rodney Rindels wrote:
>
> I use this variable to set the cookie domain for
> MasonX::Request::WithApacheSession
> PerlSetVar MasonSessionCookieDomain .mydomain.tld
> this may be what you need, or some assemblance of setting it in your
> handler setup.
> Rodney
>
> On 1/3/06, Mark Copper <[1]mcopper@titaninterface.com> wrote:
>
> 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 [2]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!
> [3]http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Mason-users mailing list
> [4]Mason- [EMAIL PROTECTED]
> [5]https://lists.sourceforge.net/lists/listinfo/mason-users
>
> References
>
> 1. mailto: [EMAIL PROTECTED]
> 2. http://Mason.pm/
> 3. http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> 4. mailto:[email protected]
> 5. https://lists.sourceforge.net/lists/listinfo/mason-users
-------------------------------------------------------
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

