<?php session_start(); $_SESSION['prog']='data';
// do anything your want
header('location: index.php');
index.php Code (PHP)
<?php session_start();
switch((isset($_SESSION['prog']) ? $_SESSION['prog'] : '')){
case 'data': include 'x_data.php'; break;
case 'view': include 'x_view.php'; break;
default: include 'home.php';
}