I have a login scipr tnad i use sessions to store some data. Basicly i have 2 files.
first file index.php has all the login stuff like forms etc, and the other files generates a random number to check for validity.
A/w i need to store the random number after it was generated half way down the page in a session, so then when user presse login butotn, and the script at the top of the page runs, the number is still stored in the session.
I use start_session() in both of my files, index.php and the file that generates the random number, but when i try to do this:
$_SESSION['image_random_value']in the index.php (the above value is created in the other file.) i get that image_random_value is undefined even though it is defined in the other file.