System security

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!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

System security

Post by S_henry »

Once I login into my system, I carry the login and password value through querystring (eg. "main.php?login=<?php echo login ?>"). I use this way to all of my pages. I think this is not the best way because everybody can see the login and password value at the page link. So anybody got idea to solve this problem?
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Use sessions.

At login, set a session var - perhaps the user's name and/or id.
Post Reply