Repository navigation
Internals Identity
Framework Internals · Developer guide
AdminModel uses awt_admin, initializes from a session ID or explicit ID, exposes registration/setters/token/password changes and hides password/token in model output. AdminAuthentication hashes input with SHA-512 and queries matching username/password, populates session admin fields and stores the last client IP. It does not use password_hash/password_verify or a general role/auth provider abstraction.
Admin adds numeric permission comparison, token-based session authentication and logout. Lower permission values grant broader access. Some session key assumptions are unchecked; route authors must establish authentication before trusting authorization results.
SessionHandler is a helper, not PHP's internal SessionHandler implementation or SessionHandlerInterface. Its named SessionHandler() method sets cookie parameters from Settings and starts a session. It initializes a started timestamp, applies an optional expires field and regeneration metadata; the actual regeneration comparison uses 10 seconds in the implementation. It does not bind the client IP despite the source description. sessionClearing removes session/cookie state and destroys the session; sessionDumper prints debug session contents.
Cookie Secure/HttpOnly/SameSite are driven by string settings. AWT installation defaults Secure true, HttpOnly true and SameSite Strict. HTTP-only local applications must deliberately adapt Secure. CSRF token storage delegates session startup to this helper.
-
Admin-Admin —
awt_src/classes/admin/Admin.php -
Admin-AdminAuthentication —
awt_src/classes/admin/AdminAuthentication.php -
Admin-Model-AdminModel —
awt_src/classes/admin/model/AdminModel.php -
Session-SessionHandler —
awt_src/classes/session/SessionHandler.php
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes