Ferreteria/v0.5/sql/user session
< Ferreteria | v0.5 | sql
Jump to navigation
Jump to search
About
- PURPOSE: for managing web sessions
- INTERNAL RULES:
- Get the session cookie. (If no cookie, we're not logged in.)
- Load the session record indicated by the cookie.
- Check the session record to make sure it matches the current client.
- If it does, the session's user ID is logged in; otherwise not.
- A session record is also created for anonymous users.
History
- 2013-10-25 stripped Session classes out of VbzCart shop.php for use in ATC project
- 2013-11-09 backported improved Session classes back into user-session.php
- 2016-04-03 moved RandomString() to fcString::Random().
- 2020-12-12 some updates for v0.4