Sharing specific usage skills of PHP dialogue_PHP tutorial

WBOY
Release: 2016-07-15 13:30:00
Original
892 people have browsed it

For http:///www.yourdomain.com/yourscript.php?count=56 assign a new value to the registered variable $count. This is important for security: it can only be deleted in server-side scripts. An unregistered dialog variable.

If you want to completely delete a conversation variable, you first need to unregister it from the system:

session_unregister('count');

The script to completely delete a conversation variable is Very simple, as shown below:

session_destroy();

Using PHP session variables can reduce the frequency of database access, make the code clearer, and reduce the number of cookies sent to the user. It's the simplest way.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446332.htmlTechArticleFor http:///www.yourdomain.com/yourscript.php?count=56 give the registered variable $count Specify a new value, this is important for security: only delete a value without...
in a server-side script
Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!