Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: problems with class::dbi::sweet

by rhesa (Vicar)
on Sep 09, 2008 at 10:47 UTC ( [id://710026]=note: print w/replies, xml ) Need Help??


in reply to problems with class::dbi::sweet

Hi xido,

I also use Class::DBI::Sweet, CGI::Session, and a cache (Cache::Memcached in my case). I can assure you that your problem isn't with those modules. The most likely culprit is your session driver, which looks "non-standard".

I have two suggestions for you:

  1. try using CGI::Session with the default CGI::Session::Driver::DBI. Pass in MultiDesk::DB->get_handle as the handle
  2. or try turning off the cache on the class you use in the session driver, with $class->cache(undef). (you didn't show us which class that is, but it's accessed with $class->{ddb} in your get_session_from_user function)

If that doesn't help, try obtaining a full stack trace for that error, and see if that narrows it down. It'd be useful to know where the error gets triggered, and the parameters and objects involved.

Caching sessions isn't useful, in my experience, because it gets flushed to the database on every request anyway. So you don't really reduce load on the database.

Replies are listed 'Best First'.
Re^2: problems with class::dbi::sweet
by xido (Initiate) on Sep 11, 2008 at 19:11 UTC
    I find the bug!! C:D:S don't have an constructror! But I blessed value than was "returned" by them with MultiDesk::DB. Destructor called twice, the second call was on non existent object.. But link with amount of get or post variables - mystery for me..

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://710026]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found