hi, i'm planning on making an admin login system for my CMS but i wouldn't know how ...
can anybody explain to me how? can someone give me some startingpoints...
i use apache, php and mysql
newbie: sessions: example
Moderator: General Moderators
There are 2 main ways of user authentication: cookies and sessions. Look into both and choose which one you want to use (I recommend sessions). There are tons of user authentication tutorials out there. Check out the links below.
Cookies - http://www.php.net/manual/en/function.setcookie.php
Sessions - http://www.php.net/manual/en/ref.session.php
Good Tutorial Sites:
http://www.devshed.com/c/b/PHP/
http://www.phpbuilder.com/
viewforum.php?f=28
http://www.spoono.com/php/
More advanced tuts:
http://www.zend.com/zend/tut/
http://www.onlamp.com/php/
http://phppatterns.com/
Cookies - http://www.php.net/manual/en/function.setcookie.php
Sessions - http://www.php.net/manual/en/ref.session.php
Good Tutorial Sites:
http://www.devshed.com/c/b/PHP/
http://www.phpbuilder.com/
viewforum.php?f=28
http://www.spoono.com/php/
More advanced tuts:
http://www.zend.com/zend/tut/
http://www.onlamp.com/php/
http://phppatterns.com/
to prevent some headaches:
Always put this line of code on top of your pages that need $_SESSION vars:
Always put this line of code on top of your pages that need $_SESSION vars:
Code: Select all
<?php
session_start();
?>