Subject: | If you have flash data, but no session data, bad things happen |
Hi,
I'm using the Catalyst::Plugin::Session::Store::DBI module,
and I've discovered a bug, at least I think it is.
If you have flash data, but no session data, then in sessions table only
a 'flash:...' entry gets created. This makes sense.
The problem is in get_session_data, when trying to get 'expires:...',
then it looks for a session table entry with id = 'session:...'. But
since we only have flash data, this search comes up empty, and causes
the session to think that it has expired, and thus to be deleted.
A work-around is to also include some (unused) data in the session, but
this seems wrong.
Thanks!
-Ryan
--
Ryan VanderBijl | http://vbijl.net/~ryan/