We also discuss permanent visitor Recognition Technology (with source code)

Source: Internet
Author: User

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) ;}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.