View Full Version : How should I organize the logging in process to my website?

05-09-2011, 12:45 AM
I have to figure out how to organize the whole process of logging in on my website. Apparently, it's hard ;). So, I think I should wait for the user to enter their info and hit the "Login" button, which would pull up a script. Like normal so far... Then, in the script, if the user exists and the password is right, then set a session with the value of their username. After that, redirect them to their user page (Kinda' like a Control Panel). On each CP, have a short script that finds out if the new session has the value of the username. If not, send them back to the homepage.

Is that somewhat okayish? Or should it be changed in ANY way?

05-09-2011, 01:48 AM
sounds ok to me

05-09-2011, 05:58 AM
sounds ok to me

Yep, and me. That's what I'd expect really :)