in reply to Recommendations for client-side state management
If the user is not logged in, you can generate some sort of guid (long, random alphanumeric, usually) that they'd never be able to guess, or use a sequential ID like above only with a security code included - the security code being a one-way hash of the ID + some internal key.
Either way, the simplest way is to just pass along the identifier as a hidden form field if you want them able to do multiple forms simultaneously. This sort of thing is why I only ever use cookies / sessions for user logins, never for form input. ID's + database storage is just so much simpler.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recommendations for client-side state management
by Anonymous Monk on Nov 23, 2011 at 11:39 UTC |