[CDBI] re: Newb - CDBI and Sessions

Karl.Moens at marsh.com Karl.Moens at marsh.com
Wed May 24 13:00:26 BST 2006






Scott R. Prelewicz wrote:
>
> Hello,
>
> i am new to Class:DBI and am confused on the best way to handle session
data with CDBI. I usually use CGI::Session > to handle my sessions, and I
can't wrap my head around trying to implement that with CDBI. I may not be
getting
> something, where a separate session module may not be needed and CDBI can
do all session and persistence work
> itself. Is there a way to subclass CDBI and use CGI::SEssion, interfacing
my session table with CDBI? Can I be a
> PITA and ask for some simple code examples of how this is done in best
practice.
>
> I hope this makes sense, I am confused enough to not quite explain any
better.
>
> thanks in advance.

For an example, have a look at Catalyst::Plugin::Session and its various
sub-modules (such as Catalyst::Plugin::Session::Store::CDBI or
Catalyst::Plugin::Session::Store::DBIC). No doubt it wil give you some
ideas how to handle the persistence issue of your application. It may even
give you the idea to start using Catalyst as your web-framework of choice
(shameless plug).

Karl
aka CountZero of Perlmonks



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This message and any attachments are confidential. If you have received
this message in error please delete it from your system. If you require any
assistance please notify the sender. Thank You.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the ClassDBI mailing list