johnsmith153 Posted May 10, 2008 Share Posted May 10, 2008 I have looked at many ways to prevent double posting either intentionally or otherwise. If it needs to be very secure I can do this easily. However, just for standard message board posts, I am not sure what to do. Dont want to be checking the database for duplicate postings every time. I dont want to use javascript or sessions / cookies etc. as I want it to work for all. Any ideas? Link to comment https://forums.phpfreaks.com/topic/104953-preventing-double-posting-of-a-form-to-a-php-script/ Share on other sites More sharing options...
DarkWater Posted May 10, 2008 Share Posted May 10, 2008 Use sessions considering they'll be used anyway for logins most likely. And anyone who doesn't have cookies on doesn't deserve to use the internet. =/ Nearly every site sets cookies for some reason or other today. I use sessions if I have to check for double posts. Link to comment https://forums.phpfreaks.com/topic/104953-preventing-double-posting-of-a-form-to-a-php-script/#findComment-537226 Share on other sites More sharing options...
johnsmith153 Posted May 10, 2008 Author Share Posted May 10, 2008 Great thanks for the help. I had already agreed to limit users who dont have cookies to not logging in (sites like Facebook and Bebo dont allow log in without cookies, so no problem for me) I was hoping a non-cookie user could view everything, just suffer at log in. I do allow one or two things to be uploaded without log in but you are right sessions is the best way, without any real change to user experience. Most message boards clam up when you try to log in without cookies also! Link to comment https://forums.phpfreaks.com/topic/104953-preventing-double-posting-of-a-form-to-a-php-script/#findComment-537236 Share on other sites More sharing options...
DarkWater Posted May 10, 2008 Share Posted May 10, 2008 You -need- cookies to keep track of sessions. Appending the sid to every URL is stupid. Non-logged in users shouldn't be able to post comments anyway. =P Link to comment https://forums.phpfreaks.com/topic/104953-preventing-double-posting-of-a-form-to-a-php-script/#findComment-537239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.