On a website I am coding, I have a login page where a user inputs their username and password. I am planning on storing these values in Session variables, and then every page they go to thereafter will have a function that will check the sessioned variables (username/password) against a database table to authenicate the user.
I am concerned if it is a good idea to store the username and password in session variables. Is there a more secure way to accomplish this? I thought about using headers, but I think the look of a login page.
Thanks for any help in advance.