How PHP implements multi-page data sharing across sessions

Source: Internet
Author: User
Tags sessions
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.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.