Answers for "can we acces session variable in two files"

PHP
0

can we acces session variable in two files

<?php
  session_start();

  ...

  if($responseCode == 1) {
    $_SESSION['card_id']    = $_POST['card_id'];
    $_SESSION['password']   = $_POST['password'];
    print '<script type="text/javascript">'; 
    print 'window.location = "http://domain.com/File2.php";';
    print '</script>';
  }
?>
Posted by: Guest on August-13-2020

Code answers related to "can we acces session variable in two files"

Browse Popular Code Answers by Language