$_SESSION wierdness

n_at_t.telling.you
Date: 07/26/04


Date: Mon, 26 Jul 2004 17:15:02 +0000 (UTC)

I have a script which runs as follows:

1) index.php (enter details into form)

2) submit form via post

3) process.php (set a $_SESSION['template'] variable)

4) go back to index.php via code:

header("location: index.php")
exit;

5) index.php ($_SESSION['template'] variable not set)

Now within process.php I can put the template var in the header
function and it works, e.g.

header("location: index.php?template=" . $_SESSION['template']);

The address bar's URL shows "index.php?template=my_var".

The problem is that in index.php I'm using the $_SESSION['template']
variable to go to the next template but it's not showing up.

What am I doing wrong?

Thanks in advance.

M@