Jump to content


Photo

Login Systems


  • Please log in to reply
2 replies to this topic

#1 billshackle

billshackle
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 16 July 2006 - 10:22 PM

Hey,

I am 75% the way through a little web app, this is my first time i've ever tried to write something from scratch and it going pretty well, but i am wondering how i come up with the login system, e.g. I want each user to have there own setting and information stored in the app. it works write now as it is just raw code on a server, but i want to be able to create (sessions i think they are called) so 100 different people can store 100 different tid bits of information.

Obviouslly i dont expect a tutorial published here, but if anyone has any resources, like i say i dont even know really what to search for, thanks

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 16 July 2006 - 10:25 PM

PHP Freaks has a user-log in system tutorial. There's also a really great one at www.daydreamgraphics.com in the PHP tutorials section.

As for sessions, there are also PHP Freaks tutorials on sessions. The essence is, sessions (unlike cookies) store information from a database in the session, instead of cookies which store an actual value. Sessions are generally more secure, as the information is never actually store on the user's computer.

Be sure to read the sticky about headers in this forum, because if you don't use the start_session(); function before sending information to the browser you will get "headers already sent" errors.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 Dville

Dville
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts

Posted 16 July 2006 - 11:33 PM

I used cookies for my login system. about.com was where I got some snippets for it from.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users