Jump to content

Archived

This topic is now archived and is closed to further replies.

billshackle

Login Systems

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
I used cookies for my login system. about.com was where I got some snippets for it from.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.