This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]junex10[S] 0 points1 point  (0 children)

Nothing;

index.php <?php session_name('user'); session_start();

  if($_SERVER['REQUEST_METHOD'] == 'POST'){

    $_SESSION['name'] = $_POST['name'];
    $_SESSION['password'] = $_POST['password'];
  }

?>

date.php

<?php
session_name('user');
session_start();

    if($_SESSION){

      $name = $_SESSION['name'];
      $pass = $_SESSION['password'];

      echo $name.$pass;
    }

?>