Permanent visitor recognition is widely used in some Internet fields. Most of the initial implementations are based on cookies. However, when users clear the browser cache, visitor recognition cannot take effect, visitor recognition is widely used in customer service systems, site statistics, and other functions to identify regular customers.
This article mainly implements permanent visitor Recognition Based on the flash jsonobject technology, but there is also a problem that when users access the website on another computer, it cannot be identified by Chaoyang, but at least it can achieve permanent identification of fixed computers. Many domestic website customer service system vendors still claim "the internationally leading visitor recognition technology", which I think is quite shameless, I only use 1 or 2 pieces of ActionScript. If you have better implementation technology, I will not be enlightened! The following is a demo of source code and implementation:
Demo address: http://code.faqee.com/interface/guest.jsp
Source code:
function guestinfor () {var logcount: export dobject = export dobject. getlocal ("ob"); var ret = ""; if (logcount & (logcount. data. gid! = Undefined) {logcount. data. logtimes ++; ret = logcount. data. logtimes + "'" + logcount. data. GID;} else {logcount. data. logtimes = "1"; var DT: Date = new date (); var C: Number = math. floor (math. random () * 1000); var temp = "g _" + dt. gettime () + "_" + C; logcount. data. gid = temp; // visitor idlogcount. flush (); ret = "1 '" + temp;} externalinterface. call ("exeonguestinfor", RET) ;}