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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:37:21+00:00 2026-05-28T17:37:21+00:00

My problem is simple yet I couldn’t find the best solution to it. I

  • 0

My problem is simple yet I couldn’t find the best solution to it.

I want to know if someone voted on a post ON PAGE LOAD (not when they vote) and if they did, change the voting image so that they can see they already voted on it.

Best solution that came to my mind was to save cookies, first question is “is it good practice to save cookies and loop through all posts to find if cookie exists?”

second question is: if it is a good solution, what should be the way to save cookies? Since only registered members will be able to vote, keeping username and postId should be enough.. or not?

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-28T17:37:21+00:00Added an answer on May 28, 2026 at 5:37 pm

    Depending on the browser, cookies have a size limit so this may not be the best approach.

    You mention that you are keeping the votes in the DB. When the page is requested just look at that table and send the appropriate image down.

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

Sidebar

Related Questions

I'm stuck on a RegEx problem that's seemingly very simple and yet I can't
My problem is very simple, yet I feel lost while looking at it ...
Really simple problem: I want to split a connection string into its keyword /
Simple problem (I think): I want to be able to invoke a click method
The problem is simple: Using bash, I want to add a directory to my
This should be simple. Yet, it's giving me Hell. Problem I have compiled the
Sorry for not included any example data for my problem. I couldn’t find a
I simply want to upload an image to a server with POST. As simple
Simple problem, though apparently not a simple solution. Example here: http://myhideout.eu/new/ Basically the site
There are a lot of topics on this post. But i couldn't find a

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.