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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:41:00+00:00 2026-06-13T14:41:00+00:00

Lets say that there is a webpage that can only be accessed by inputting

  • 0

Lets say that there is a webpage that can only be accessed by inputting a user name and password on a separate page. This webpage aside from its normal function, should also keep track of the time a user logs into it and the time when the user logs out.

The system I currently have in place is a JavaScript solution. A function to log logins with a successful click event on the submit button and a function to log logouts on the logout button.

A few problem here obviously. What if a user closes the browser? that logout wont be recorded. What if a user loses internet connection? etc etc. I can think a few use case scenerios of where a client side handler can get it wrong. I need something protected, something server side. What method do you guys recommend for accomplishing above task without the flaws of client side? Does a viable client side method exist?

  • 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-13T14:41:01+00:00Added an answer on June 13, 2026 at 2:41 pm

    With a websocket solution you could be noticed at serverside when new users connects or disconnects. The only “drawback” with this kind of solution, is that if the user go to another page (even in the same domain), then is like the user disconects. Then, it will “reconect” if in the new page is the same websocket solution to track user login.

    You could avoid this by having an “ajax like” navigation, so the user never leaves a single page.

    There are some cool APIs to implement websocket, like Pusher.

    Here is the link to pusher

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

Sidebar

Related Questions

(This is for a game I am designing) Lets say that there are 2
Lets say that there are two tables: Order ID (PK) DateExecuted OrderStep ID (PK)
Lets say that you have a business object whose current state implies that there
Let's say that there is this command: g++ main.o somefile.o -lc -o main What
Let's say that there are two PHP functions. function first() { $keyword = $this->input->post('keyword');
Lets say that I have three tables, customers, orders and orderDetails. I'm doing this:
So lets say there's a server process that takes way too long. The client
I am creating a webpage..as usual. But I have a problem. Lets say that
Lets just say that I have three textboxes: TextBox1, TextBox2, TextBox3. Normally if I
Let's say there are two python scripts that want to write data to the

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.