Forums

Database Question (2 posts)

  1. stevewilson
    Member
    Posted 5 months ago #

    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?

  2. vtxyzzy
    Member
    Posted 5 months ago #

    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/

Reply

You must log in to post.

About this Topic

Tags