Page 1 of 1

detect that user has refreshed the page

Posted: Sat May 09, 2009 8:44 am
by jazz090
im running this mysql command and once the user fills out the form and clicks next, they are transfered to another section and a row is inserted into a mysql database. however if the user hits F5 or whatever and refreshed the page, the row is re-entered into the database. is there anyway to detect with sessions these kinds of behaviour?

Re: detect that user has refreshed the page

Posted: Sat May 09, 2009 9:07 am
by mickd
You could just use a session to store which 'section' they are at, and thus when they go back to the page (by refresh or anything), it'll check the session and continue from there.