8 articles recommended for session mechanism

Source: Internet
Author: User
Tags session id php session setcookie
Session mechanisms (sessions) are used in PHP to hold some of the data in concurrent access. This makes it possible to help create more humane programs that increase the attractiveness of your site. A visitor visiting your Web site will be assigned a unique ID, which is called the session ID. This ID can be stored in a cookie on the client, or it can be passed through a URL. Session support allows you to save the data in the request in the Hyper-global array $_session. When a visitor visits your website, PHP will automatically check (if Session.auto_start is set to 1) or check (explicitly via session_start () or implicitly through Session_register ()) The current session ID at your request Whether it was a previously sent request creation. If this is the case, the previously saved environment will be rebuilt. $_session (and all registered variables) will be serialized by PHP using the built-in serialization method when the request is complete. Serialization method

1. PHP features session mechanism 2--session and its use

Summary: Session mechanisms (sessions) are used in PHP to hold some data in concurrent access. This makes it possible to help create more humane programs that increase the attractiveness of your site.

2. PHP features the use of session mechanism 1--cookie

Summary: PHP transparently supports HTTP cookies. A cookie is a mechanism for storing data on a remote browser to track and identify users. You can use the Setcookie () or Setrawcookie () function to set the cookie.

3. Use of Php-cookie

Introduction: PHP features the use of conversational mechanism-cookie

4. Php--session and its use

Introduction: PHP features the conversational mechanism-session and its use

5. In-depth understanding of browser session mechanism (session && cookie) Clear Cookie cookie Download Cookie Note

Introduction: Session,cookie: In-depth understanding of browser session mechanism (session && cookie): For a front-end developer, a cookie I think everyone is unfamiliar, often encapsulating some such as Setcookie, GetCookie method, the session is like a familiar stranger, when we work with the backend developer project will use it, but do not understand its nature, below we will discuss in detail the next cookie storage location: stored in the client Role: This domain stores data across pages (which we seem to generally use username,passward) cookies generally contain information such as: transfer: Next

6. Questions about session mechanism in PHP

Introduction: Session mechanism related issues in PHP

7. Related issues with the session mechanism in PHP

Introduction: How to think about the problem of conversational mechanism in PHP? 1. Can I access the session after the client has disabled cookies? The session in PHP uses the client's cookie to save the session ID by default, so it will affect the session when there is a problem with the client's cookie. However, the session does not rely entirely on cookies, it can also pass the session ID via URL get. This will require you to

8. Is the PHP session secure? How to build a secure session mechanism?

Introduction: Study A few days session security, draw a few points, please correct: can XSS by obtaining cookie information, including SessionID can intercept HTTP, get header information, including SessionID above both methods have certain conditions and difficulty If the service side relies on SessionID to identify the session letter ...

"Related question and answer recommendation":

is PHP session safe? How to build a secure session mechanism?

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.