So, there are a few thing that matter with cookies:

Cookie Domain (www.example.com)
and Cookie Name which MasonX::Request::WithApacheSession sets to:
'MasonX-Request-WithApacheSession-cookie'.

The "SessionID" is stored as a value in that container.

This is all implemented with Dave's Apache::Session::Wrapper module,
which generates a unique session id if the cookie is not set on the
browser.

I'd recommend forking your codebase and moving to Catalyst at some
point.  Dave handed the module over to me after seeing Catalyst emerging
as a powerful framework.  I started playing with Catalyst a few months
later and have moved all my production code to Catalyst with Mason being
used as the templating language.  I don't even have legacy code in use
that uses this module anymore, so it's support is waning..

On Tue, Sep 15, 2009 at 10:54:34AM -0500, Mark Copper wrote:
> Hi,
> 
> I am using cookies via WithApacheSession to maintain state on my
> website.
> 
> My handler contains these arguments:
> 
>    args_method   => 'mod_perl',
>    request_class => 'MasonX::Request::WithApacheSession',
>    session_class => 'Apache::Session::MySQL',
>    session_data_source => 'dbi:mysql:********',
>    session_user_name => '***',
>    session_password => '********',
>    session_directory => '/tmp/sessions',
>    session_lock_data_source => 'dbi:mysql:********',
>    session_lock_user_name => '***',
>    session_lock_password => '********',
>    session_cookie_domain  => '.**************',
>    session_use_cookie => 1,
> 
> My question:  Is there a guarantee that two separately generated cookies 
> are different?  Or is it just probable?  
> 
> Thanks.
> 
> Mark
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users

-- 
Brad Lhotsky

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to