Store login information in DB

Hi, is there a way that i can capture the username, time, date, and Client IP of someone logging on to a secure page on my site - with no end-user input? Currently, i am using:
<cfset clientIP = cgi.REMOTE_ADDR>
<cfoutput>Client IP Address: #CGI.REMOTE_ADDR#</cfoutput>
...using this code i can display the information to the user, but what i really want to do is capture every login in the database, automatically...So, the end-user logs in, sees what i have up there, and logs out. without any input from the end- user, i would like to get an "idea" of who logged on, when, etc. and the information would be stored automatically. I have added a table in MS Access, relative to my other tables, to store the info.
Any ideas?

Sounds great, but i have to admit that i am a little "too green"... how exactly should i add that information?
currently, i have an "index.cfm" page that is the login, then it goes to the "presentation.cfm" page.
I am guessing that the code you gave me would go on the "presentation.cfm" page... probably above the HTML tag....
am i on the right track here? i am getting a syntax error... but that might be b/c the #Now()# date is different than what the DB is looking for...

No problem, when a user is logging in, you likely have a query to validate their username and password against the form field. If the user has entered the correct username and password, you then probably continue on to create the session variable. At that same time (a successful login) I would place the insert statement. You don't want to place the insert on a page where the user just visits because it will login his page visits not his login, so only place the insert when you process the login.

The query you show is from tblDataX, is that the real name? I ask because you are fetching from that table and then inserting into the same table in the next query. Not sure why. If tblDataX is the table that holds the user's login information, you DO NOT want to insert their activity into that table, you want to add it into another table.. something like this...

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…

The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website.
This will be demonstrated using a Windows 8 PC.
Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…