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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:59:03+00:00 2026-06-07T05:59:03+00:00

I am trying to implement a demo account in one of my php webapps.

  • 0

I am trying to implement a demo account in one of my php webapps.

The concept is, that the user would have a total of x hours (max) access to the application since his first login. I am thinking of a frontend counter (javascript) that would begin from the first login and if the user quits the browser it will update the remaining hours on the database (before closing).

I wonder if there is a better way to do this. Any ideas?

  • 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-07T05:59:04+00:00Added an answer on June 7, 2026 at 5:59 am

    It depends on how much is it important for you to stop potential misuse.

    This way I could create the demo account and, before exiting your page, turn off js, so update never happens and I have my everlasting demo account 🙂

    I would go with updating the time on every page and checking if number of free hours is used.

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

Sidebar

Related Questions

I am trying to implement this demo on my local machine. http://bit.ly/4g4o1r I have
I'm trying to implement http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master into my code. I'm following the Demo provided and
I am trying to create a simple 3-D app for android that will have
I have been trying to figure out how to implement a simple xml rpc
I'm trying to implement a TinyMCE plugin with ExtJs, with a demo as example,
This one has me pulling my hair out. I'm trying to implement a very
I am trying to implement virtual data mode with EasyListview From the demo :
I've been working on a demo in OpenGL and I've been trying to implement
That's my first approach with GD stuff. I'm trying to implement resize and crop
I am trying to implement the setup outlined here http://toroid.org/ams/git-website-howto but with one difference.

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.