Home>Article>Backend Development> Reasons for php session failure

Reasons for php session failure

(*-*)浩
(*-*)浩 Original
2019-10-12 10:05:59 3993browse

The reason why php session failed

Reasons for php session failure

Cause 1:

bin directory The file has been rewritten. ASP.NET has a mechanism. In order to ensure that the system runs normally after the dll is recompiled, it will restart the website process. This will cause the Session to be lost, so if there is an access database located in the bin directory, or there is If other files are overwritten by the system, the session will be lost. (Recommended learning:PHP video tutorial)

Cause 2:

In the folder options, if "Open in a separate process" is not turned on "Folder Window", once a new window is created, the system may think it is a new Session and cannot access the original Session, so this option needs to be turned on, otherwise the Session will be lost.

Cause 3:

It seems that most of the session losses are caused by the client, so start from the client and see if the cookie is opened

Cause 4:

Is there a problem with the time setting of Session? Will it be lost due to timeout?

Cause 5:

The limit on the number of cookies in IE (20 cookies per domain) may cause session loss

Reason 6:

Use web garden mode, and use InProc mode is used as a way to save sessions

Recommended related articles:The most complete collection of js interview questions in 2020 (latest)

The above is the detailed content of Reasons for php session failure. 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
Previous article:Is php simple? Next article:Is php simple?