[rt-users] Recurring Login Problem

Stephen Turner sturner at MIT.EDU
Wed Jan 5 17:01:46 EST 2005


At Wednesday 1/5/2005 04:20 PM, Jesse Vincent wrote:

>That's very odd. drop in code to YAML::Dump or Data::Dumper the session
>to your logs just after it's loaded and also in the page footer (When
>everything should be done already)?

I dumped the session twice, at the start & end of autohandler. When I type 
in user name & pwd and submit, the second dump shows the full user object 
stored in the session:


[Wed Jan  5 21:50:48 2005] [debug]: $VAR1 = 'CurrentUser';
  $VAR2 = bless( {
                  '_Class' => 'RT::CurrentUser',
                  '_SB_Record_Primary_RecordCache_key' => 'Users:id=1265',
                  'table' => 'Users',
                  'values' => {
                                'creator' => '1',
                                'comments' => '',
                                'state' => undef,
                                'webencoding' => undef,
                                'password' => 'sksdfjw48wert34n',
                                'realname' => 'TURNER, STEPHEN',

<etc, etc cut out>

                }, 'RT::CurrentUser' );
  $VAR3 = '_session_id';
  $VAR4 = '026f81fb6958910a8dd568c6b9d7f97f';



THEN - when autohandler gets called again (same request, mason component 
path "/NoAuth/images/bplogo.gif"), the first dump of the session is:

[Wed Jan  5 21:51:29 2005] [debug]: $VAR1 = '_session_id';
  $VAR2 = '026f81fb6958910a8dd568c6b9d7f97f';
  $VAR3 = 'CurrentUser';
  $VAR4 = bless( {
                  'table' => 'Users'
                }, 'RT::CurrentUser' );

and the second is:

[Wed Jan  5 21:51:29 2005] [debug]: $VAR1 = '_session_id';
  $VAR2 = '026f81fb6958910a8dd568c6b9d7f97f';



Now, I just noticed that this setup was installed against perl 5.8.0, which 
raises a red flag - I'm going to have it reinstalled against 5.8.3 and hope 
this issue just goes away.

Steve 




More information about the rt-users mailing list