I've got a custom authentication system for a CGI::Application based site where I want to store a copy of a CGI object when a inactivity timeout occurs. I've got a solution that seems to work great that does the serialization with FreezeThaw, except when the CGI object results from a POST submission with a file upload field where it dies with error "Do not know how to thaw GLOB at /usr/lib/perl5/site_perl/5.8.6/FreezeThaw.pm line 505".
I'm guessing that FreezeThaw is barfing on the globs that the CGI module uses references the uploaded files. This kinda makes sense to me. If you've already got something in file, why bother trying to serialize a pointer to it?
I remembered that the CGI module had a method for saving state (save_parameters), but after testing it out, I noted that it doesn't do anything for upload files (the name of the upload file is preserved; not the content.)
Unless an esteemeed monk (with XP far greater than me!) has an alternative approach, I'll probably go under the hood of the CGI module and figure out how to save copies of the uploaded files myself and recreate pointers to them when I restore the CGI object again in the future.
Am I overlooking a simpler solution?
Thanks for any help!
In reply to Suggestion- How to serialize a cgi object? by pffan239
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |