rpiambulance / website

RPI Ambulance's website—a work in progress
http://rpiambulance.com/
3 stars 13 forks source link

Added support for Database Sessions #75

Closed lramos15 closed 5 years ago

lramos15 commented 5 years ago

Removed PHP Sessions due to unexpected behavior when being run on a cPanel server which led to the sessions being collected prematurely. Moving it into our database allows for us to have granular control of when the cookie is an isn't given. Right now it is 5 days of inactivity leads to log out.

TODO: Add a config file to specify how long it should be until you log out because right now 5 days is hard coded. Remove all the session_start(); requests that are floating around. Not a huge deal right now as we don't use any $_SESSION variables anymore in the code.

ddbruce commented 5 years ago

Fixes #12 and #74