Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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

  1. Rose DB is undef'ing it (sensibly);
  2. CGI::Session is not freezing it; or
  3. 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?


In reply to Rose::DB::Object and CGI::Session by cLive ;-)

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found