My response about what was in %query was based on the line above
that i took to be the call to this subroutine.I had counted the args and determined it was even so your "even-sized list expected" message made me wonder, so I searched other posts of yours and found much to my surprise that that the actual calling code seems to beLoginUser($dsn,$sql_username,$sql_password,$sql_user_table,$sql_sessio +n_table,$passhash,$sessionhash,$uvId,$username,$ipaddress);
my ($result, $login_timeout) = LoginUser($query);
Dumper showsuse CGI; my $query=new CGI; test($query); sub test { my (%query)=@_; use Data::Dumper; print Dumper(\%query); }
Which is not what you expected at all is it? Based on seeing that the actual call is$VAR1 = { 'CGI=HASH(0x3f7e24)' => undef };
and that you never use the %query hash i suspect that when you said my (%query) = @_; you really wanted my ($query) = @_; That sets the localized scalar variable $query to the first argument of the call rather than trying to set the hash %query to the entire argument list. It also matches your call better and creates a localized $query variable to use in the LoginUser subroutine based on the arguments to the call rather than using the $query variable set somewhere else.my ($result, $login_timeout) = LoginUser($query);
as i noted warnings do not stop execution and i dont know what you mean by "derails code to determine if already logged in"
as to why "the warn( in my cgi scripts do not print in the error log" i cannot answer, mine do, and a google search has produced no further answers either.
as you see debugging by proxy can be a real pain, even more so for me when you only release code in little pieces, spread across many threads. I understand your frustration, do you understand mine?
I understand debugging old code, both of mine and that from someone else. i stand by my previous statement "You need to step back and look at what is really going on, not what you think is going on."
In reply to Re^5: Sessions Questions
by huck
in thread Sessions Questions
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |