Skip to content

Commit

Permalink
mention that sessions get serialized with JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 29, 2011
1 parent 0a19cc9 commit a126a63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -725,7 +725,7 @@ Gracefully end WebSocket connection or long poll stream.
$c = $c->flash({foo => 'bar'});
$c = $c->flash(foo => 'bar');
Data storage persistent only for the next request, stored in the session.
Data storage persistent only for the next request, stored in the C<session>.
=head2 C<on>
Expand Down Expand Up @@ -933,7 +933,8 @@ Note that this method is EXPERIMENTAL and might change without warning!
$c = $c->session({foo => 'bar'});
$c = $c->session(foo => 'bar');
Persistent data storage, defaults to using signed cookies.
Persistent data storage, defaults to using C<JSON> serialization and signed
cookies.
Note that cookies are generally limited to 4096 bytes of data.
$c->session->{foo} = 'bar';
Expand Down

0 comments on commit a126a63

Please sign in to comment.