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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:17:31+00:00 2026-06-01T00:17:31+00:00

Let’s assume at us there is a certain page on a site and when

  • 0

Let’s assume at us there is a certain page on a site and when the user comes on this page, it should make some actions: to fill fields, something else. The user must finish in 15 minutes. As soon as 15 minutes expired, to execute any action. On client side it is solved simply. But it seems to me it is necessary to do on server(if the user closes page, the timer won’t work).

Details:
When user comes on page that I call controller’s action. In this action I add some record in DB. If the user didn’t finish in 15 minutes, I need to mark these records in a DB.

What is best approach to do this?
Thanks.

  • 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-01T00:17:32+00:00Added an answer on June 1, 2026 at 12:17 am

    Just have a client-side hidden attribute set after 15 minutes that is posted with the user action. If that hidden attribute is present then take no action.

    Or, pass in the start time when the page is rendered from the server. Include it in the post. If the time elapsed when the post is made is more than 15 minutes take no action.

    If you need to dynamically call the server in 15 minutes and post the data regardless of user input, you are going to have to do a couple things. First, since the user can change their clock to extend the time you cannot expect to get the clock from javascript client side. You will have to have the clock monitored through an AJAX call. Once 15 minutes is up, have the AJAX post the entire page regardless.

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

Sidebar

Related Questions

Let's assume that a user votes for some movies in a scale of 1
Let's assume I want to deserialize this (I've removed the namespaces to make things
Let's say on a page I have alot of this repeated: <div class=entry> <h4>Magic:</h4>
Let's assume that we are building a high traffic site that will be used
Let's say there is a graph and some set of functions like: create-node ::
Let's aggregate a list of free quality web site design templates. There are a
Let's say i have this block of code, <div id=id1> This is some text
Let's assume we have the following structure: index.php config.inc.php \ lib \ lib \
Let's assume that I am at manual A. I press enter and I am
Let’s say I have a number like 0x448 . In binary this is 0100

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.