View Single Post
Unread 11 Dec 2004, 03:30   #95
Unregistered
Guest
 
Posts: n/a
Re: Production!

Quote:
Originally Posted by Leshy
Which also means that you would have to reset your preference each time you log in, if you delete all your cookies upon exiting your browser.

Unless you do add an entry to the database, so that upon logging in the necessary cookie is automatically recreated. In which case you might as well reference the database for the preference setting instead of using a cookie in the first place.
Ok, you've still misunderstood me.
What i meant was that it is stored in the database when you set your preferences, or when you first sign-up ofc, then; whenever you login to your account it reads the DATABASE and sets the cookie.... so then it refers to the cookie for the rest of the session... instead of reading the database for every page.
but,ofc, when u change your preferences it updates both the DATABASe and the cookie.... get it ?