search
HomeBackend DevelopmentPHP7What should I do if the session value cannot be successfully passed across pages in PHP7? (with solution)

Solution to the failure of cross-page transfer of session value in PHP7

Cause of failed transfer

session is stored on the server side, and php in PHP7. session.use_trans_sid = 0 in the ini configuration file, causing the transfer to fail. (As shown below)

What should I do if the session value cannot be successfully passed across pages in PHP7? (with solution)

Solution

Just set session.use_trans_sid =1. The modification method is as follows:

  • Find the php.ini file

  • Find it according to the PHP installation path of your computer, for example, mine is E:php7. 3.4nts\php.ini

  • Open the php.ini file, ① shortcut key ctrl h → ② enter: session.use_trans_sid → ③ change 0 to 1.

What should I do if the session value cannot be successfully passed across pages in PHP7? (with solution)

Recommended study: "PHP7 Tutorial"

The above is the detailed content of What should I do if the session value cannot be successfully passed across pages in PHP7? (with solution). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:juejin. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function