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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:58:23+00:00 2026-06-10T06:58:23+00:00

I’m having a problem. I have a page with about 1,200 buttons, the website

  • 0

I’m having a problem. I have a page with about 1,200 buttons, the website will not be a membership website, I just want to be able to keep track of each visitor to ensure that a button that they clicked on cannot be clicked by them again until 24 hours have expired.

I know i could use cookies, but thats too much for 1,200 buttons.

Here is what the buttons html are like:

<li><a href="http://google.com" class="btn_smallorange" id="button1">Button 1</a></li>

Do you have any suggestions — I am open to almost any type of script, but know that this website was made with PHP?

  • 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-06-10T06:58:24+00:00Added an answer on June 10, 2026 at 6:58 am

    Your choices for keeping track of a given browser with some sort of browser-identifying ID (so you might know who a given user is) are:

    1. Cookies
    2. Local Storage

    Your choices for storing the state of the 1200 buttons are:

    1. Server-side storage of the state that is given to the web page by the server
    2. Cookies (probably have to collapse the data to one bit per button0
    3. Local storage

    So, for example, you could combine storing a browser identifing value in a cookie with storing the actual button state in a server-side database. Then, when the page is rendered, you look up the button state in the database for the browserID that is in the cookie and you either disable or remove the relevant buttons from the rendered HTML page.

    You could do all the storage in a cookie by collapsing the 1200 buttons state to one bit per button. Using A-Z and a-z and 0-9 and a couple of symbols, you could easily have 64 values per character which would allow you to store the on/off state for 32 buttons per character so the on/off state for 1200 buttons could be stored in 38 characters which easily fits in a cookie. If you had to store a time/date for each button too, then that won’t fit into a cookie so you’d be left to server-side storage or local storage.

    FYI, I hope you realize that any client-side scheme is very easy to get around. In fact, if you’re just trying to prevent a user from going to the same URL more than once, all they have to do is bookmark the original URL and they can go there as often as they like without even visiting your web page. Or, they can just wipe cookies or local storage. Or, they can just go to a different browser.

    The only real way to prevent multiple visits is to require user authentication and validate (on your web server) that a given logged-in user is allowed to visit any given page before rendering the page. So, if you want to do this robustly, then it has to all be done server-side and you will need some sort of site login.

    • 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
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I need a function that will clean a strings' special characters. I do NOT
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small

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.