GithubHelp home page GithubHelp logo

clockin's Introduction

Clock in, Clock out

This a minimalistic implementation ~200 LOC of a time clock as described in my blog.

Review

I would appreciate a review since this is my first foray into the world of Web sessions and a time/attendance system.

I decided upon PHP $_SESSION since that might be the most mature and easy to implement.

I was naively hoping that PHP's $_SESSION would manage the entire record, but as I began to understand it, I now view it as a very simple UX tool to ensure the user doesn't inadvertently re-login from "/". That's it!

Questions / Things I don't understand how to handle

If a user is already logged in another device. What happens to the session? Can they be combined? Can the first session prevent a new session with the same credentials from being created?

Can the session be used to "clock out" the user after say a time out?

Assumptions

That the identity number is secret. I know I display on the index page, but this is for debugging. I wanted to avoid passwords for this prototype. In future I will make the "clock out" action that's not done by a user, a privileged protected action.

clockin's People

Contributors

kaihendry avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.