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

PHP operations on HTTP Session sessions

WBOY
Release: 2016-07-25 09:11:30
Original
840 people have browsed it
  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. ?>
复制代码


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