Reputation: 5010
I've recently been developing a userscript to display a sidebar on all the websites we develop, to tell us things like whether the site is meant to be AA, browser support etc etc. This is for internal use only. I am limited to using Classic ASP and jQuery / JavaScript.
My problems are as follows:
We have a set up as follows (very simplified representation):
Based on the above, does anyone have any suggestions for the best way to be able to sync data and store as much as we need on a per-user basis? Note that this, ideally, needs to work with GreaseMonkey on Firefox, Chrome, Opera and Trixie on IE (6-9). IE 6-7 are not absolute musts, but are preferable.
Upvotes: 1
Views: 1075
Reputation: 12916
If it needs to be permanent and you do not want the clients to be able to see that you store info then client side storage is out of the question. It has to be stored server side..
Ao what you need is:
The first one you could do using a third party cookie (like google and facebook do to track you on multiple domains). On each site include a link (0x0px iframe, small imgage or something else) that calls a service on a tracking server. The first time the user visits a site, set a long lived cookie. The cookie will be send to the tracking server every time thus uniquely identifying your user. Third party cookies must be enabled on the browser for this to work though.
The second one will have to be a database or file of some sort. I'd say if you cannot use a datebase create a service on one of the machines (the tracking server) and let that one write some info to a disk. This is a poor mans solution as files are hard to query.
Upvotes: 2