in reply to CGI.pm saving state to database
You should be extremely cautious when deserializing data from a database and ensure that the permissions do not allow people to put random stuff into the table that could be deserialized in such a way that it could potentially be harmful. Hope that helps#!/usr/bin/perl -w use strict; use CGI; use Storable qw(freeze thaw); my $cgi1 = CGI->new(); # do some stuff my $save_cgi = freeze($cgi1); # # save $save_cgi to a database # time passes and you get it back into $save_cgi # (this is possibly in another process my $restore_cgi1 = thaw($save_cgi); my $cgi2 = CGI->new($restore_cgi1);
/J\
|
|---|