go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
"After the user is logged in, I want to be able to take the cookie valye into a scalar so I can split and use the $user and $pass. . . "
Please tell me I'm misunderstanding your intentions. You're not going to store a user name and password in your cookie, are you? If so, let me visit your site with my friend JavaScript ;) You'd be much better served by storing a unique (and very hard to guess) session ID in the user's cookie, then looking up information about that session from something on the server (database, file, etc.). Much more efficient, much more secure. See Mr. Muskrat's code for how to read the cookie properly. Excellent suggestion, ++ to him :)
Cheers! In reply to Re: Extracting the cookie value
by MrCromeDome
|
|