in reply to Re^2: Losing session value
in thread Lossing session value
You are not checking for an empty value, you are setting one. And if you don't do that, you are setting it to undef which is just as bad. Here is what I think you should be doing:
my $got_file_name = $cgi->param( 'doc_upload' ); # Store file name to use later but only if it is defined. $session->param("doc_uploaded", $got_file_name) if $got_file_name; my $filename_uploaded = $session->param("doc_uploaded");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Losing session value
by Anonymous Monk on Dec 13, 2017 at 17:34 UTC | |
by hippo (Archbishop) on Dec 14, 2017 at 09:34 UTC |