Follow this steps:
page1.php
if (!$forum) {
session_start();
session_register(forum);
}
.
.
.
page2.php
session_start();
// You can setup $forum like it
$forum=my_forum
$sql=(insert into table ...);
.
.
session_unregister(forum);
session_destroy();
If the user try to reload the page in page2, in some cases he is not able to insert values in the database. In page.php he will create the session(forum);
Regards