Page 1 of 1

Session Oddity

Posted: Thu Nov 20, 2003 10:01 am
by Saethyr
Okay,

I am working on a project where I have to create a session variable called tech ID I do it in the following way

Code: Select all

<?php
session_start();

//This should never be the same
$_SESSION["TechID"] = date("Ymdhis");
$Tech = $_SESSION["TechID"];
?>

This works, but, only after I refresh the page a second time. For example, I visit the page, nothing, I refresh the page and everything comes up fine. Any clues why this is happening.