Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to get a cookie, split the 'sessionID' value field for a user/pass combo. When I print out cookieString it it empty (and it also unable to authenticate the user). The cookie is on the computer, and is in the format $user%7C$pass (I assume %7C is the char code for '|'). Here's the code:
if ($q->cookie('sessionID')) { my $sessionID = $q->cookie('sessionID'); $cookieString = $sessionID; ($submitted_username, $submitted_password) = split('|', $sessi +onID); } else { $submitted_username = $q->param('username'); $submitted_password = $q->param('password'); }
Can anyone tell where the error is?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems grabbing cookie
by Cody Pendant (Prior) on Jun 25, 2003 at 10:42 UTC | |
|
Re: Problems grabbing cookie
by dataDrone (Acolyte) on Jun 25, 2003 at 04:53 UTC |