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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:40:05+00:00 2026-05-27T14:40:05+00:00

I am working on a solution that consists of a Domain Model (in its

  • 0

I am working on a solution that consists of a Domain Model (in its separate project) and a MVC3 Web Application (again in its own project).

In my MVC3 application, I am listing posts (accessed via a Repository on the Domain), and each post has a like button, and of course in the Domain Model, the Post entity has a property of:

public int Likes { get; set; }

What I want to allow is for a visitor of my site (i.e. a guest) to be able to hit the Like button on a post, but only once. So that he/she is able to like a post once.

What is the best way of achieving this ? Cookies ? Saving IP Addresses in Database along with the Post Id liked ? Or some other way ?

I’m really confused, cause whichever way I think of, there are always holes in the logic, where a user can Like a post twice !

Any help would be great.

Thank You.

  • 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-27T14:40:06+00:00Added an answer on May 27, 2026 at 2:40 pm

    Have a loot at this Q&A: https://softwareengineering.stackexchange.com/questions/94095/how-to-prevent-same-user-rating-a-web-content-like-video-more-than-once

    Bottom line: There is no way to absolutely prevent multi-votes, but you can partially mitigate the risk given enough development efforts.

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

Sidebar

Related Questions

I'm working on a project for a firm that has their main solution in
I have wrote an application that consists of two projects in a solution, each
I'm working on a new storage system for a business solution package that consists
I am working on localization for a asp.net application that consists of several projects.
I want a solution for tag:hover that is not working on ie6. My guess
I'm working on an e-commerce solution for one of my clients that will not
I have a project that consists of a bunch of dynamically loaded modules. Originally,
I am working on an application which consists of several modules and requires them
Stupid question. I've got a project that I'm working on in PHP; it's a
I am working on a scientific application that has readily separable parts that can

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.