Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6747219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:24:57+00:00 2026-05-26T12:24:57+00:00

I’m building site where user will register, login, switch to other users page, read

  • 0

I’m building site where user will register, login, switch to other users page, read article, logout etc.

For this moment I think that all these events must be logged for security reasons, so admin will have big options of data to manipulate. Is this apporach correct or not ?

Each event will be supplied with users ID, IP , + Date and time in separate fields.

I’m just interesting in general approach to this subject. Maybe there is something more to be done, or some different method of doing this things. Some hints and tricks that may help to build more secure and nice project…

Small example.

1.User presses register button

2.User validates each input field

3.User presses “register” to send the registration form

4.Server says it’s ok or there is an error.

5.If OK user is registered.

6.User is still at the registration form looking at errors.

7.If he was registered activation Email sending to user….

8.User recieves message that letter with activation link was sent to him.

So which events I must log in this example ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:24:58+00:00Added an answer on May 26, 2026 at 12:24 pm

    a good and common approach would be that every event has it’s level.

    you set in the configuration the current level that the system is working on. all the events with a level lower (or higher) than the current config level will be logged.

    that is of course logging user activity.

    many advanced system implement a logger for the code, that is separated from the user activity. it would normally log into a file (you can also log into database, but this should be done with caution, since it can be heavy). you set the system current level to DEBUG/INFO/USER etc. when you log code, almost after every line of code you have a call to the logger (some will be ignored, depending on the level). this way, when you want to debug and find problems, you can set the log to DEBUG and see how the code runs line by line. on routine basis you can find problems when going over USER/INFO messages.

    EDIT:

    you can log user activity. you can log system behavior. you can log data that will give you a better knowledge of how users (members/guests) are surfing your website. what links they are clicking, what common actions they are performing, how much time they spend on every page, how much scrolling they are doing, mouse movements, text highlights etc. you can learn from it how to improve your user interface to improve user experience. you can detect problems in the UI, or in the system. the question is – what are you trying to achieve from the data that will be logged? is it just debugging your system, finding hack attempts, or finding out how users are using your site?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I need a function that will clean a strings' special characters. I do NOT
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.