Rose::DB::Object and CGI::Sessionby cLive ;-) (Parson)
|on Oct 02, 2008 at 16:22 UTC||Need Help??|
cLive ;-) has asked for the
wisdom of the Perl Monks concerning the following question:
I think my biggest problem here is trying to work out where I should be looking...
I'm adding a Rose::DB::Object (subclassed in RoseDbObject, say) and wrapped in a Manager class to a CGI Session object:
This works, but when I end the CGI instance, the user param gets set to undef. So, on the next instance of this session, $self->session->param('user') doesn't exist as expected.
I'm guessing that there's some automatic cleanup running in Rose::DB::Object subclass (it probably is a bad idea to keep a Rose DB object persistent in a session, but since I was using it as read only... ;-), but nothing jumps out at me during a quick scan of the code.
Anybody got a clue as to whether
Yes I'm being lazy - I don't want to try to write a standalone case outside of the app unless I have too. I guess I will if I have to, but I was hoping someone might have a hint or two as to what I'm missing first :)
Any ideas as to what I'm missing?