PHP/Cookie Session/Session Encode

Материал из Web эксперт
Перейти к: навигация, поиск

Encoding Data

<?php
  session_register("A");
  
  $A = array("A1", "A2");
  
  $str = session_encode();
  
  $openfile = @fopen("saveme.txt","w") or die ("This operation cannot be performed.");
  @fwrite($openfile, $str);
  @fclose($openfile) or die ("This operation cannot be performed.");
  echo "Success!!";
?>