Home >Backend Development >PHP Tutorial >10 course recommendations on session data

10 course recommendations on session data

零下一度
零下一度Original
2017-06-14 14:24:421249browse

When using Session technology to track users in the system, the default processing method of Session is to record the session information of each user in the file in the Web server, and create the path of the session data file through session.save_path in php.ini. Although this default processing method is convenient, it is also flawed. It will seriously affect the execution efficiency of the system. The main reason is that the own Session mechanism cannot be used across machines, because for systems with relatively large access volume, multiple servers are usually used for concurrent processing. If each server processes the Session separately, the purpose of tracking users cannot be achieved. At this time, you need to change the way Session is processed. You can save Session information to other servers using sharing technology, or use a database to save Session information. Whether you use a database or sharing technology to share session information, the principle is basically the same, and you change the default processing method through the session_set_save_handler() function in PHP

1. php Custom Session information processing instructions

10 course recommendations on session data

##Introduction: Use Session technology to track users in the system , the default processing method of Session is to record the session information of each user in the file in the Web server, and create the path of the session data file through session.save_path in php.ini.

2. PHP Security - Session Data Exposure

10 course recommendations on session data

##Introduction: Session data exposure Session data often contains some personal information and other sensitive data. For this reason, exposure of session data is a common concern. Generally speaking, the scope of exposure will not be very large, because session data is protected...

3.

PHP Security - Session Data Exposure (2)

Introduction: Session Data Exposure When you focus on preventing source code exposure, your session data is also at risk. By default, SESSION is saved in the /tmp directory. This is very convenient in many situations, one of which is...

4.

Analysis of the SESSION principle in PHP and issues to note when applying to large websites

10 course recommendations on session data

Introduction: PHP SESSION principle We know that session is a method of maintaining user session data on the server side, corresponding to Cookies hold user data on the client side. The HTTP protocol is a stateless protocol. After the server responds, it loses contact with the browser. At the earliest, Netscape introduced cookies into the browser so that data can be exchanged across pages by the client. So how does the server remember the sessions of many users? What about data? First, we need to establish a one-to-one relationship between the client and the server. Each client must have a unique identifier, so...

5.

An unknown exception occurs in the application Software exception PHP multi-database supported application design Page 1/2

Introduction: Application exception occurs Unknown software exception: Application exception occurs Unknown software exception PHP multi-database support application design page 1/2: So I think that in the master-slave database design, all session-related tables should be treated specially. That is: all session data tables can be updated and queried. When a user accesses the site, the user is bound to the specified database, and all session access and query operations are performed on this database. The session table is not synchronized, and other non-session updates are also updated from the main database. In fact, this cannot escape the database switching when the session is updated, so if you don't want to bother, it is better to store the session in text. The separate database design will probably improve the performance by several levels

6.

php multi-database supported application design page 1/2_PHP tutorial

Introduction: PHP multi-database supported application design page 1/2. So I think that in the master-slave database design, all session-related tables should be treated specially. That is: all session data tables can be updated and queried when a user visits the site

7. Analysis of the implementation principle of session in php and issues that should be paid attention to in large website applications_PHP tutorial

Introduction: Analysis of session in php The implementation principle and the issues that should be paid attention to in large website applications. PHP SESSION Principle We know that session is a method to maintain user session data on the server side, and the corresponding cookie is to maintain user data on the client side. The HTTP protocol is a stateless protocol

8. PHP session and cookie_PHP tutorial

Introduction: PHP session and cookie cookies. PHP SESSION Principle Session is a method to maintain user session data on the server side, and the corresponding cookie is to maintain user data on the client side. The HTTP protocol is a stateless protocol. Server

##9. PHP session_encode() and session_decode()_PHP tutorial

Introduction: PHP session_encode() and session_decode(). This article will introduce to you the usage of PHP session_encode() and session_decode(). Students who need to know more can refer to this example. session_encode session_encode encodes the current session data into

10. How PHP session works_PHP tutorial

Introduction: How PHP sessions work. PHP SESSION Principle We know that session is a method to maintain user session data on the server side, and the corresponding cookie is to maintain user data on the client side. The HTTP protocol is a stateless protocol

[Related Q&A recommendations]:

java - Servlet How to pass SessionID## through general request parameters

#android - Problems with php writing interface session data

javascript - Problems with using MongoDb to store session data in Node and Express development, according to the book , the following question has arisen. I have been searching for a long time and cannot find the answer. I would like to ask everyone for advice

session stores the user's session data on the server. Do you close the browser and session? Just released?

The above is the detailed content of 10 course recommendations on session data. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn