can we acces session variable in two files

Solutions on MaxInterview for can we acces session variable in two files by the best coders in the world

showing results for - "can we acces session variable in two files"
Kenza
16 Jan 2018
1<?php
2  session_start();
3
4  ...
5
6  if($responseCode == 1) {
7    $_SESSION['card_id']    = $_POST['card_id'];
8    $_SESSION['password']   = $_POST['password'];
9    print '<script type="text/javascript">'; 
10    print 'window.location = "http://domain.com/File2.php";';
11    print '</script>';
12  }
13?>