Search
 
SCRIPT & CODE EXAMPLE
 

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>';
  }
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel vu3 
Php :: php adding options from an array 
Php :: br2nl 
Php :: check if date is older than today php 
Php :: yii2 active form date input 
Php :: PHP OOP - Interfaces 
Php :: open two files at once in phpstrom 
Php :: laravel , How can I increment and decrement value with unique id 
Php :: php expire session for 1 month 
Php :: how to increment a number after concatinating it with a date function in php 
Php :: Display out of stock products last (even after sort) - Woocommerce 
Php :: woocommerce affiliate product link image to external link 
Php :: php increase response time 
Php :: http://www.endmemo.com/program/R/vector.php 
Php :: To Search Specific Post Type 
Php :: bu7scador con laravel 
Php :: building an ecommerce website with laravel 
Php :: array_key_first not works 
Php :: envoyer mail php depuis localhost 
Php :: Funktion umgekehrt ausgeben, strrev 
Php :: current tab active on page reload in php 
Php :: php mysql submit form 
Php :: 0.1 eth to php 
Php :: artisan call composer dump in controller 
Php :: adding field to array on condition laravel 
Php :: Laravel Query: orderBy not working with groupBy (with a joined table) 
Php :: laravel chain query builder 
Php :: php make text id attribute safe 
Php :: Read the index and hashid of the last block in the blockchain 
Php :: $var = 1 / 2; in php 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =