List Info

Thread: Authen / Session different behavior between mod_perl and myapp_server.pl




Authen / Session different behavior between mod_perl and myapp_server.pl
country flaguser name
United States
2007-05-31 20:10:15
I have a situation where the Authentication / Session
storage mechanism 
behaves differently under mod_perl from myapp_server.pl

There was a strikingly similar post last summer: 
http://www.mail-
archive.com/catalystlists.rawmode.org/msg00753.html

but it seems like the problem got dropped, so here's my
situation:

As asked in the earlier thread, I added

sub finalize {
my ( $c, foo ) = _;

use Data:umper;
local $Data:umper:eparse;
$c->log->debug( Dumper($c->session, $c->flash)
);

$c->NEXT::finalize(foo);
}
to MyApp.pm

under myapp_server.pl, the session contents look like:

[debug] $VAR1 = {
          '__address' => '[my ip addr]',
          '__created' => 1180658359,
          '__updated' => 1180658367,
          '__user' => 'kevin',
          '__user_store' => 'default'
        };

but under mod_perl / Apache, it looks like:

[debug] $VAR1 = {
          '__address' => '[ my ip addr ]',
          '__created' => 1180657464,
          '__updated' => 1180657464,
          '__user' => 'kevin',
          '__user_store' => bless( {
                                     'auth' => {
                                                
'catalyst_user_class' 
=> 'Catalyst::Plugin::Authentication::Store:BIC::Use
r',
                                                
'password_field' => 
'passwd',
                                                
'password_type' => 'clear',
                                                
'user_class' => bless( {
                                                            
             
'attrs' => {
                                                            
                          
'alias' => 'me'
                                                            
                        
},
                                                            
             
'cond' => undef,
                                                            
             
'count' => undef,
                                                            
             
'pager' => undef,

[ huge amount of detail removed looks like my DBIC schema ]

This is running under Windows XP / Apache 2.2.4 / mod_perl
2.0.3 / 
ActiveState perl 5.8.8.820

The following plugins are loaded:

[debug] Loaded plugins:
.-----------------------------------------------------------
-----------------.
| Catalyst::Plugin::Authentication  
0.09                                     |
| 
Catalyst::Plugin::Authentication::Credential::Password      
              |
| Catalyst::Plugin::Authentication::Store:BIC  
0.07                        |
| Catalyst::Plugin:umper  
0.000002                                         |
| Catalyst::Plugin::Session  
0.14                                            |
| Catalyst::Plugin::Session::State::Cookie  
0.07                             |
| Catalyst::Plugin::Session::Store:BI  
0.11                                |
| Catalyst::Plugin::StackTrace  
0.06                                         |
| Catalyst::Plugin::Static::Simple  
0.15                                     |
'-----------------------------------------------------------
-----------------'


Any thoughts?  Thanks in advance.

-kb

-- 
Kevin Berggren
System Maker, Inc.
kevinbsystemmaker.com
(818) 891-9132

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )