Subject: | Mention flush() in the synopsis |
Here's a small patch to remind people to use flush() in the synopsis.
I needed explicit calls to flush when changing the driver from flat
files to postgresql when running the script in mod_perl1, which cost me
a bit of time debugging the issue. Having the reminder up there should
prevent other people getting bitten by that.
Subject: | documentation.diff |
--- Session.pm.orig 2006-10-20 11:05:59.000000000 +0200
+++ Session.pm 2006-10-20 11:19:10.000000000 +0200
@@ -450,6 +450,10 @@
# or
$session->param(-name=>'l_name', -value=>'Ruzmetov');
+ # flush the data from memory to the storage driver at least before your
+ # program finishes since auto-flushing can be unreliable
+ $session->flush();
+
# retrieving data
my $f_name = $session->param('f_name');
# or