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

Sharing specific usage skills of PHP dialogue_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:30:00893browse

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
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