Welcome Guest, Not a member yet? Register   Sign In
Making sure a record hasn't changed
#6

[eluser]Aken[/eluser]
A couple options:

1) Store the last updated time in a session variable as you already suggested. If you are using the database to store session data, it is far from precious. Smile

2) Store the last updated time in a hidden input field. Upon success and pending save, retrieve the DB's time again and compare the two.

I'd recommend the session data since it's far harder to be manipulated (even though manipulating the form input would cause it to be rejected anyway).


Messages In This Thread
Making sure a record hasn't changed - by El Forum - 07-09-2011, 08:53 AM
Making sure a record hasn't changed - by El Forum - 07-09-2011, 11:58 AM
Making sure a record hasn't changed - by El Forum - 07-09-2011, 12:27 PM
Making sure a record hasn't changed - by El Forum - 07-14-2011, 05:49 AM
Making sure a record hasn't changed - by El Forum - 07-16-2011, 05:44 PM
Making sure a record hasn't changed - by El Forum - 07-17-2011, 10:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB