Can a session on the server be deleted through sessionid in PHP? I want to implement the function of kicking out members, but how can I do it in PHP? my idea is to record the session id of each member login, this ID is used to delete the session on
This article mainly introduces PHP Session control: Session and Cookie Details. This article describes Session and Cookie related knowledge in PHP in detail and covers a wide range of topics, for more information about PHP session control, see the
This article introduced the PHP session control, mainly elaborated the following several things:
• Background/concept of Session controlMaintenance and life cycle of • Cookies (effective time)Maintenance and life cycle of session (recovery
Session is a server-side storage space maintained by the application server. When you connect to the server, the server generates a unique sessionid, use this sessionid as the identifier to access the session bucket on the server. Sessionid is saved
In many programs, a session is also called a Session state. It is used to maintain information related to the current browser instance. It is often used for user login to save information or a simple shopping cart.
Session, also known as Session
Session, also known as Session status, is the most common status in the Web system and is used to maintain information related to the current browser instance. For example, we can put the username of the logged-on user in the Session, so that we can
1. Cookie
The cookie is stored on the client. the header set-Cookie returned by the server is created, saved, and deleted by the browser upon expiration. By default, the cookie life cycle is the browser process cycle. The server can also explicitly
1. The client saves the sessionid with the cookie
The client saves the sessionid with the cookie. When we request the server, the sessionid will be sent to the server together, and the server will search for the corresponding sessionid in the
PHP uses sessionid to implement session sharing and login verification code. For more information, see
PHP uses session id to implement session sharing and login verification code. For more information, see
Let's talk about the purpose of this
Use ILSpy to view the Session. SessionID generation algorithm and sessionid generation algorithm.
Reason
In InProc mode, asp.net sessions are easy to lose and often need to be logged on again. distributed sharing is not supported.
So when we are
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.