Quote:
Originally Posted by eMonk
That didn't seem to work Tempest. Anymore ideas?
|
I just tested the code I posted and it works perfectly.. i.e. page <= 1 generates a new random number and any other page uses the number that's stored in the session.
So the only thing I can think of is that your session isn't getting set properly. Make sure there is NO output before the session is opened, variables saved etc. Check the source of the page and see if there's any blank lines at the top for example. Turn on error reporting to see if any errors are getting thrown. Put this right at the very start of the script.
Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);