PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I currently have a login form on my website, but I need to have each member go to different sections of my site. What would be the easiest way to accomplish this while still being secure. I am not using .htaccess but php. I can successfully get them to the member page but need to redirerct them base on the user name. the ext is the extension saved in MySQL that I need to forward them to. any suggestions? Heres the member.php
Sessions are used to carry information between multiple page requests. You are doing a single page request, so why store their password if you are using it in the same request. Infact, you should never store their password in plain text, be it in a session or in a database. You should hash all your passwords using an encryption (md5, sha1, sha256, sha512) and check against your hashed password with the database password.
Also, I forgot to mention in the last post when inserting user values into your query, at minimum pass your variable through mysql_real_ecape_string() to prevent SQL injection attacks.
Basically I will have different people logging in to view multiple pages of content. Each user has different content and doesn't need to look at other users stuff. I will hash passwords once I get this running right and prevent injections. For some reason that header script won't work, it brings up a parse error/ syntax error. Any other ideas, thanks for any feedback