Page 1 of 1
newbie: sessions: example
Posted: Sun Jan 11, 2004 3:01 pm
by thomasd1
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
Posted: Sun Jan 11, 2004 3:56 pm
by DuFF
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/
Posted: Sun Jan 11, 2004 4:01 pm
by thomasd1
thanks alot D
Posted: Sun Jan 11, 2004 4:05 pm
by basdog22
to prevent some headaches:
Always put this line of code on top of your pages that need $_SESSION vars: