title: Can I set up a session in a WordPress custom page
body: <p>I am trying to set up a login system and a contact form for front-end users of my custom WP theme. I need to create an ajax post method and send the input values to the server (Captcha and input values like name, phone, email, ... ).
  Now my question is, do I  have to create a php session to secure unwanted form submission or passing the captcha value between two pages?</p>
  
  <p>If so, is this a correct page template for a contact page and captcha page</p>
  
  <pre><code>&lt;?php
  session_start();
  /*
   Template Name: Contact Page
  */
  </code></pre>
  
  <p>The captcha.php</p>
  
  <pre><code>&lt;?php
  session_start();
  </code></pre>