/lib/jquery-validate/demo/captcha/newsession.php

# · PHP · 12 lines · 5 code · 4 blank · 3 comment · 0 complexity · 0000ba60ecf39509092327d1966a4668 MD5 · raw file

  1. <?php
  2. // Include the random string file
  3. require 'rand.php';
  4. // Begin a new session
  5. session_start();
  6. // Set the session contents
  7. $_SESSION['captcha_id'] = $str;
  8. ?>