I have an odd problem, that has been bothering me for a while. I have a fairly complex web database system, with authentication. There is a single program which takes username and password, and then checks authentication (via a database), and, if OK, sets a cookie. Other programs in the suite read the cookie. This works just fine in most browser/OS combinations. But, for some odd reason, in some situations, mostly with Win 98, the cookies just don't get read, and wierd stuff happens with the browsers.
I'm using the standard CGI cookie, the login and check code is below. What am I missing? Are there known issues with the CGI cookie function? Or with perl cookies?
Thanks for any advice!!
Setting cookies:
Checking Cookies:if (($user)&&($passcheck)) { my $cookie = cookie(-domain=>"$meta_configs{xina_domain}", -name=>"$meta_configs{login_cookie_name}", -value=>"$login_id", -path=>"$meta_configs{login_cookie_path}", -expires=>"$meta_configs{login_cookie_expir +ation}"); print header(-cookie=>[$cookie]); # cookie set
Logging out:$login_id = cookie("$meta_configs{login_cookie_name}");
my $cookie = cookie(-domain=>"$meta_configs{xina_domain}", -name=>"$meta_configs{login_cookie_name}", -value=>"$old_cookie{value}", -path=>"$meta_configs{login_cookie_path}", -expires=>"0"); print header(-cookie=>[$cookie]);
In reply to CGI Cookie Problems by michellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |