Home > Backend Development > PHP Tutorial > Sharing specific usage skills of PHP dialogue_PHP tutorial

Sharing specific usage skills of PHP dialogue_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-15 13:30:00
Original
1001 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:
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