[Catalyst] [newbie]: Catalyst Session double creation under opera browser

Alexei Alexandrov ava at elcomsoft.com
Fri Jun 16 12:24:39 CEST 2006


Hello everyone,

Started playing with Catalyst and found a strange thing under Opera
browser.
Let me explain. I have crated a test appllication with session and
authentication
support (authentication is my own plugin for Catalyst to Authenticate
users against
Communigate PRO):

use Catalyst qw/
	-Debug
	Static::Simple
	Session
	Session::Store::DBI
	Session::State::Cookie
	Authentication::CGPPWD
/;

Lauched the app wth app_server.pl and tested sessions like this in main
module:

sub default : Private {
    my ( $self, $c ) = @_;
    $c->session->{count} += 1;
    $c->stash->{template} = 'welcome.tt2';
}

so that in welcome.tt2 i can output the result with [% c.session.count
%] just for
a test purpose. And everything went fine until i looked into my sessions
table. What
i`ve done cleaned the sessions table and made a request with opera
browser:

[Fri Jun 16 14:09:20 2006] [catalyst] [debug] Found sessionid
"e49603c4497a7ed56c2fd004bb43d7a4" in cookie
[Fri Jun 16 14:09:20 2006] [catalyst] [debug] "GET" request for "" from
"10.10.10.10"
[Fri Jun 16 14:09:20 2006] [catalyst] [debug] Deleting session
e49603c4497a7ed56c2fd004bb43d7a4 (expired)
[Fri Jun 16 14:09:20 2006] [catalyst] [debug] Created session
"8db49b57b5c2a7f75af1b5010b85a983"

Ok. so in sessions table should be only one entry with session id
8db49b57b5c2a7f75af1b5010b85a983, but
there are two entries one is 8db49b57b5c2a7f75af1b5010b85a983 and the
other one is unknown to me. Made
another request with opera in debug output i see that catalyst has found
session 8db49b57b5c2a7f75af1b5010b85a983
but in sessions table i see one more session entry created still the
browser sends right cookie information and etc...
This is only with opera browser... Tested under IE6 - IE7, Firefox
everything all right...

Can you please give me any advice?

---
 Best Regards,
 Alexei Alexandrov
 www.elcomsoft.com
 ava at elcomsoft.com






More information about the Catalyst mailing list