[Jifty-commit] r4844 - jifty/trunk/lib/Jifty/Web/Session
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jan 14 04:03:31 EST 2008
Author: audreyt
Date: Mon Jan 14 04:03:31 2008
New Revision: 4844
Modified:
jifty/trunk/lib/Jifty/Web/Session/ClientSide.pm
Log:
* J::Web::Session::ClientSide - Switch to Storable because we really want to
serialize all kinds of things.
Modified: jifty/trunk/lib/Jifty/Web/Session/ClientSide.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Session/ClientSide.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Session/ClientSide.pm Mon Jan 14 04:03:31 2008
@@ -19,7 +19,7 @@
use warnings;
use base 'Jifty::Web::Session';
use Jifty::Model::Session();
-use Jifty::YAML ();
+use Storable ();
use Compress::Zlib ();
use Crypt::CBC ();
use Crypt::Rijndael ();
@@ -112,7 +112,7 @@
if ($data) {
local $@;
eval {
- if (my $session = Jifty::YAML::Load(
+ if (my $session = Storable::thaw(
Compress::Zlib::uncompress(
$self->_cipher->decrypt(
decode_base64(
@@ -227,7 +227,7 @@
-value => encode_base64(
$self->_cipher->encrypt(
Compress::Zlib::compress(
- Jifty::YAML::Dump(
+ Storable::nfreeze(
$self->_session
)
)
More information about the Jifty-commit
mailing list