Home > Backend Development > PHP Tutorial > How to reduce session saving pressure

How to reduce session saving pressure

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-10-22 00:14:21
Original
947 people have browsed it

Please ask the master to tell me the specific plan.

My idea is this, if you use cookies as a session, it is definitely unsafe and token verification must be added.

Reply content:

Please ask the master to tell me the specific plan.

My idea is this, if you use cookies as a session, it is definitely unsafe and token verification must be added.

PHP sessions are saved as files by default. You can instead access them in memcache or redis, which will be very efficient.

The following is how to modify the session saving mechanism
https://segmentfault.com/a/11...

Session is stored in the hard disk by default. Is there any storage pressure? Then those memory servers are dead, haha

Fall into DB,+https

Put the session into memcached and redis?

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