Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>';
  }
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #acces #session #variable #files
ADD COMMENT
Topic
Name
7+6 =