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 6999893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:36:03+00:00 2026-05-27T20:36:03+00:00

Hi there I am creating a community website where if user A visit to

  • 0

Hi there I am creating a community website where if user A visit to profile of user B then it will notify user B that 1 person visited to your profile, if user is offline then it will send email notification that 1 person visit to your profile.

Problem: If I enter a log into database every time user visit to anothers profile… it will show wrong data.. for example if i visited to a user profile and just refresh page many times then it will log many times and i have to use grop by query which is waste of data. So should I use time to something? what will be best approach?

Second, how frequent I send email if user if offline. If i send once i enter log then in a day I am sending many mails to users. What should i follow to keep system spam free and effective?

  • 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-27T20:36:03+00:00Added an answer on May 27, 2026 at 8:36 pm

    First:

    The data is not wrong! YOU must decide what you want to log! If you want to log only one visit from A to B per Day add a date column to your log and check if thee is already a row With matching “from”, “to” and “date” values before you insert a new row.

    This would however create two rows if A visits B at 23:58 and reloads at 00:01.

    You can add a datetime column to your log and only insert a row if the timespan between two visits is greater then or equal to 24 hours.

    Second:

    Let your users choose how often they want to get a notification! You can use cronjobs and/or workers to send the notifications depending on the users settings. I would suggest using one worker to do all the mailing to avoid conflicts, but this highly depends on your server. If you can not set up a dedicated mailing thread you can use multiple cronjobs but then you will have to take into account that a user might change his settings, or get a visitor while your cronjob is still working.

    IMHO Sending notification mails more than once a hour for profile visits is a reasons to block all mails from a site. Daily updates should be enough.

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

Sidebar

Related Questions

Is there a free software for creating windows help files for your program? I
I am creating an 'award' system for my website to encourage a community fealing,
I am developing a community / news article website where there is a side
I'm working on a sharepoint farm that has User Profiles enabled. We're creating a
For the current theme im creating there are multiple images that require to change
hi there Iam creating a Paypal IPN and i have a pay now button
Is there any way creating a photo gallery using Listview control ? Im playing
Is there a way when creating web services to specify the types to use?
There are lots of tools for creating installers on Windows (InstallShield, InnoSetup, NSIS, just
There are too many options for creating projects in XCode, But When we select

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.