I want to have an input element at the to of my webpage that contains some global settings for a logged in user. How could I attach this piece of data to every single GET/POST and AJAX request that comes in from my web application? I wanted to tack this onto an existing site that has a lot of code already.
Cookies aren't what I'm looking for, because you couldn't have two different cookies for the same site in different tabs/windows of the same application (an HTML input could have different values for the same logged in user in two different tabs/windows.)
UPDATE: To clarify, the feature I want is to bridge two different modes in the same browser and let the user switch between the two modes via an option menu. The current mode would affect everything the user does even down to short/small Ajax requests (every request into the system would need to know what mode the browser window is in.) So two different tabs in the same browser would behave very differently from each other if they are in different modes.