> The above speudo script work fine and when the user click 'Add to
> Data', the data is added to my database.  Howver, the
> session_unregister and session_destroy do not clear the variable
> Faction and its value. Therefore if the user click Reload on the
> browser, the data gets added again.
>
> What is my problem,

Uh...  Do you actually do a session_register('Faction')?  If so, why?  I
bet you don't though, which means your question has nothing to do with
sessions.  You can't prevent a user from hitting reload and re-posting the
same data.  This Faction variable comes from the browser.  You simply have
to check to see if the data has already been added to your database and
not allow the re-post.  Or redirect away from this page as soon as you get
the post so a reload wouldn't reload the posted page.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to