usa le sessioni

Codice PHP:
<?php
session_start
();

$user=$_POST["username"];
$_SESSION[$user];

$pass=$_POST["password"];
$_SESSION[$pass];
?>