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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:48:37+00:00 2026-05-18T23:48:37+00:00

We have a jquery/php/mysql system that allows a user to log in and review

  • 0

We have a jquery/php/mysql system that allows a user to log in and review videos built by a system for online viewing. When a user begins reviewing a video, the video is marked as such. But now we’ve cornered ourselves into the classic browser-based application problem of the user navigating away or closing the browser without completing review. That video would then enter a state of limbo of constantly being reviewed, but never completed, and never re-entering the queue.

Options we have are:

  • Build a service (which we already have others) to find review sessions that are outside a duration boundary and reset them back into the queue.
  • Reset review sessions outside a duration boundary when that user logs in. Essentially, if a user locks out a video for review, it’ll be unlocked the next time they log in.
  • A suggestion made to me was to use the php/apache session length and on expiration, reset any pending review jobs. I don’t even know where to look to implement this as this is one project on a shared server, so it shouldn’t be an apache config, but the reset mechanism would need to know the database credentials to be able to reset it…
  • The worst solution everyone hates is preventing the user from navigating away with javascript, asking “Are you sure?!”

This system is used by a few hired reviewers, so I’m not exactly dealing with the public here, but I can’t prevent users from sharing logins for speedier review, which would knock out the 2nd option above because it would unlock a video being reviewed by someone else using the same login.

  • 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-18T23:48:38+00:00Added an answer on May 18, 2026 at 11:48 pm

    There are two good options that won’t tax your server. Either:

    1. Run a cron-job every hour looking for review sessions that are outside of the duration boundary. This has the advantage of being transparent to the end user. But it’s possible to kill an active session if you’re not careful (Suppose the user is operating in multiple tabs).

    2. Prevent users from navigating away with JS. Honestly, this is what I would do since the user is reviewing the video (if they were just viewing it, that would be bad, but since they know they are supposed to be acting, it’s ok). Just say If you leave now, the review will be canceled, are you sure?.

    Honestly, I’d do option #2. SO uses it, and it works well here. It wouldn’t be for every page, just those where there’s an active review going on…

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

Sidebar

Related Questions

I have a jquery/php voting system I'm working on. Once a user clicks a
The question is: How to save user input linebreak to database. (jQuery/php/mysql) I have
I have a simple jQuery/PHP autocomplete text box that gets the matches from mySQL.
I have a PHP/jQuery/AJAX/MySQL app built for managing databases. I want to implement the
I am working on a filter functionality using ajax/jquery and php/mysql.I have two sets
I have a jquery-ajax function that sends data to a php script and the
I am asking this question that how can you develop such thing with PHP+MySQL+jQuery
Handling Multi Users Requirements: I have an applications (mysql php jquery) where the users
I'm getting ready to use the JQuery-based FullCalendar in my online app using PHP/MySQL
I have a really simple site in PHP / MySQL and JQuery http://mathalon.in/ ,

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.