[CDBI] re: Newb - CDBI and Sessions

[email protected]
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <OF442B7957.44C5E11C-ONC1257178.00416401-C1257178.0041F584@marsh.com>




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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.