How PHP implements multi-page data sharing across sessions
How to achieve cross-session multi-page data sharing, such as the user's permission data, I want to check once and then saved in an array, the next time the same user login directly from the array can be directly matched to the data without having to check the database
------to solve the idea----------------------
The session is fully available, and can be implemented with NoSQL, depending on the needs.
------to solve the idea----------------------
With NoSQL, frequent queries
------to solve the idea----------------------
References:
Quote: References:
Save with session
Session no, I need to implement cross-session function, session can only be in the conversation, I think different pages without a session can access the same array
What does cross-session mean? All users with the same permission settings? How about writing a file like that?
If each user's permissions are different, isn't it a session? You just don't want to check the database? Then you can read it from the file above and then differentiate it.
------to solve the idea----------------------
User rights are saved in session, when initialized, can be judged.