I'm just wondering, what is the best method for creating a website with login/logout function? i.e ppl will be able to login to access certain part of the site.
i tried using the 'session' before and it worked pretty fine. is there a better way?
thx
login/logout
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
http://php.hax.nu/sessions.php
Ignore the last part "Because we have no other choice" , the author was most likely hit on the head when he wrote that phrase.It has been said that sessions are insecure due to the fact that a 3rd party only needs your session id to take over your session. This is 100% true and stated on the php website. So why use them? Because we have no other choice!