I read this post before: In general, the separation of the administrator and the web application into two objects
The bottom line is that we can combine the api side of things and the web side of things together in one cakephp application. However, as you know, REST is stateless, and there is no reason to expect the client to save a cookie or something like that. Do you guys know exactly when the session_start function runs in CakePHP? I really want to avoid starting session_start when the API endpoints are deleted. However, I will need a session to start when my usual web fronts get in.
v2 +, , :
( , cookie ), , . lib/Cake/Model/Datasource/CakeSession.php start():
lib/Cake/Model/Datasource/CakeSession.php
start()
public static function start() { debug_print_backtrace(); exit(); ... }
, , :)
session_start() CORE\Cake\Model\Datasource\CakeSession.php. session_start(), . , Auth, session_start() .
session_start()
CORE\Cake\Model\Datasource\CakeSession.php