Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the twentytwenty domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home4/tintedsu/public_html/curtishowell/wp-includes/functions.php on line 6121
Session Logging with PHP and mySQL – Curtis Howell

Session Logging with PHP and mySQL

We had a need to keep track of when users were logging into our system. We use this data for sales, marketing and auditing the value of our site. The session logging is an extension of my previous post, Password-Protecting pages with goDaddy, PHP and mySQL server.

Create Another Table

Using the same steps as in the previous article, go into the mySQL database management page on goDaddy and create a table called logins with 3 fields in your existing database. Create the fields as follows:

Field ## Type ## Length/Values ## Collation
uid ## int ## 30
username ## varchar ## 30 ## utf8_general_ci
timestamp## varchar ## 30 ## utf8_general_ci

Switch login.php File

Once again, the login.php file is stored on this web site as a .txt file. This file has an additional 7 lines of code (including comments) from the original login.php file, starting with “#update login log”. Go To Modified login.txt

By curtis

I'm awesome! Yah!

One reply on “Session Logging with PHP and mySQL”

Leave a Reply

Your email address will not be published. Required fields are marked *