title: how to enable http securely by using ini_set
body: <p>I have used the ini_set function but when I checke my chrome inspection, my http is still not checked.</p>
  
  <p>I have tried to use several ini_set functions such as the following but also thought that it should have prevented my javascript code from executing</p>
  
  <pre><code>ini_set('session.cookie_secure', '1');
  ini_set('session.cookie_httponly', '1');
  ini_set('session.use_only_cookies', '1');
  session_start();
  
  
  
  
  &lt;script type="text/javascript"&gt;
      var a = document.cookie;
      alert(a);
  
  &lt;/script&gt;
  </code></pre>