Page 1 of 1

User Login/Authentication/Session Tracking

Posted: Fri Feb 25, 2011 2:02 am
by SalientAnimal
Hi Everyone,

I am trying to create a login page for my "intranet" site that is authenicated via a MySQL database and Apache. I am having difficulty on where to start and how to carry the session information from the login to the other pages, i.e. for submitions etc. Can anyone help me with a basic code that will perform the functions below:

1. Login the user in - Authenticated against the data.
2. Carry session data from one page to anther so I can track using usernames that are logged in.
3. Identify how many users are currently logged in.
4. Not allow users to access any pages unless they are logged in.

I would really appreciate the help with this. Eagerly awaiting your helpful replies :-)... Thanks