I see quite some frameworks and CMS's that use their own session implementation instead of the native PHP session driver. All for their own reasons.
Examples of these are Wordpress, Laravel, CakePHP(somewhat).
What I am wondering is though, if they set a cookie manually and do session handling themselves how do they deal with thirdparty packages?
Thirdparty composer packages might interact with the default $_SESSION
and might try and set session variables while $_SESSION
is entirely not used.
Still with frameworks like Laravel from what I can remember it still interacts perfectly fine with thirdparty packages and they all get put into their own session implementation.
Would love to know from somebody who might have some experience with this.
edit
An example of a thirdparty package might be a php debugbar which can read from $_SESSION and insert it's own variable if needed. I know frameworks like Laravel have their own debugbar implementation for this that does not interact with the native $_SESSION
.
I guess I want to know if it's viable to totally run your own $_SESSION
implementation without having too much trouble.