Home > Backend Development > PHP Tutorial > I have stored the session data in the database. I want to manually decode and obtain all the session_id data. How to write it?

I have stored the session data in the database. I want to manually decode and obtain all the session_id data. How to write it?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-11 11:34:23
Original
948 people have browsed it

The session is stored in the MySQL data table

Reply content:

The session is stored in the MySQL data table

Session is actually a serialized value. You have put the session into the database. When you take it out, just unserialize() it once. In this way, you can get a session data, which must contain session_id...
But I guess you may not have saved the session-id. You can use this method directly session_id(). The manual address is http://www.php.net/manual/zh/...
Go and study it yourself

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template