User Login Trail in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SalientAnimal
Forum Newbie
Posts: 11
Joined: Mon May 31, 2010 10:01 am

User Login Trail in PHP

Post by SalientAnimal »

Hi everyone.

I'm really hoping someone can help me here as I have search all over for a solution but no luck.

I have a php website the runs off of a MySQL database. There is a login screen where all users login and get autenticated by the user table. Once logged in users capture various types of information on forms that get submitted to different tables within the database. I would like the login to be carriered through the session and automatically be captured into the form and saved to the table that the form is beig submitted to so that I will be able to track user activity on certain forms. I'm not sure what additional information you require me to provide to help with the solution.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: User Login Trail in PHP

Post by Celauran »

Store the login information in $_SESSION (or cookies) and call it when writing to the database.
Post Reply