Home >Backend Development >PHP Tutorial >PHP operations on HTTP Session sessions

PHP operations on HTTP Session sessions

WBOY
WBOYOriginal
2016-07-25 09:11:30833browse
  1. session_register("A");
  2. $A = array("A1", "A2");
  3. $str = session_encode();
  4. $openfile = @fopen("saveme.txt","w") or die ("This operation cannot be performed.");
  5. @fwrite($openfile, $str);
  6. @fclose($openfile) or die ("This operation cannot be performed.");
  7. echo "Success!!";
  8. ?>
复制代码


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