Hi,
I'm fairly new to Perl/CGI and am trying to set up a website with MySQL back end. I know there's a database forum but I think my question is more CGI-related.
My question is how or where do I store successful login info (ie username and password) when a user logs in to the MySQL database using a web form?
I want the user to be able to log in and be able to view/edit their profile and other data relating to that user, using web forms and CGI.
I just can't figure out how to store the successful login info to use to connect to the database for each query.
- cookies? (I've read you shouldn't store a password in one)
- cgi::session? (I've also read I shouldn't store a password in a session object)
I'd be enormously grateful and appreciative of any help.
Thanks.
I'm fairly new to Perl/CGI and am trying to set up a website with MySQL back end. I know there's a database forum but I think my question is more CGI-related.
My question is how or where do I store successful login info (ie username and password) when a user logs in to the MySQL database using a web form?
I want the user to be able to log in and be able to view/edit their profile and other data relating to that user, using web forms and CGI.
I just can't figure out how to store the successful login info to use to connect to the database for each query.
- cookies? (I've read you shouldn't store a password in one)
- cgi::session? (I've also read I shouldn't store a password in a session object)
I'd be enormously grateful and appreciative of any help.
Thanks.