[Catalyst] Creating sessions using database

Chisel Wright chisel at herlpacker.co.uk
Tue Feb 14 16:23:42 CET 2006


On Tue, Feb 14, 2006 at 08:41:13PM +0530, Vidya Sagar wrote:
>    Hi all,
> 
>    I have to create a session to my database elements.....So i am using the
>    perl module "Catalyst::Plugin::Session::Store::CDBI" ...if u observe there
>    are some methods in use to create sessions....is that
>    compulsory.....willnt it directly get created after configuring the
>    sessions...

Did you follow the link(s) I posted last time you asked about sessions?

>  use Catalyst qw/Session Session::Store::CDBI Session::State::Cookie/;
>     
>      GMS->config->{session} = {
>          storage_class => 'GMS::Model::Session',
>          id_field      => 'gid',
>          storage_field => 'stg',
>          expires_field => 'expires',
>          expires       => 3600,
>          need_commit   => 0,
>      };

At a glance, it looks sane

>    shall i have to write any more methods to create a session or
>    not........like , i have seen some methods in CPAN as

You shouldn't need to create any of your own session handling methods.



-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

This is not an automated signature. I type this in to the bottom of every
message. 



More information about the Catalyst mailing list