I created a tiny table to hold a status "flag" but it occurs to me that one visitor's flag setting will clobber the state of the previous visitor. True?
Or does WordPress create on the fly a separate instance of the database for each visitor?
I created a tiny table to hold a status "flag" but it occurs to me that one visitor's flag setting will clobber the state of the previous visitor. True?
Or does WordPress create on the fly a separate instance of the database for each visitor?
There is only one database - all visitors use the same one. The only way I am aware of to uniquely set a value for a visitor is to use cookies.
If you do a Google search on 'php using cookies', you will get a number of articles explaining how to do this. For example, this one: http://www.websitepublisher.net/article/php_cookies/
You must log in to post.