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:
$self->session->param( user => RoseDbObject::Manager::userLoad($userna +me) );
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
- Rose DB is undef'ing it (sensibly);
- CGI::Session is not freezing it; or
- I'm missing a different stupid error
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Rose::DB::Object and CGI::Session
by perrin (Chancellor) on Oct 02, 2008 at 17:06 UTC | |
by cLive ;-) (Prior) on Oct 03, 2008 at 21:41 UTC |