detect that user has refreshed the page
Moderator: General Moderators
detect that user has refreshed the page
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
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.