Archive for category Computer

Disable SSL 2 on Windows Server

Secure Socket Layer protocol version 2 (SSL v2) has a serious vulnerability. Successful exploitation of this vulnerability would allow an attacker to execute arbitrary code in the context of the affected server. No authentication is required to reach the vulnerable code. No user interaction is required. Since this vulnerability is in library code used by multiple applications, the details of how an attacker would exploit it vary. In all cases, an attacker would need to specify invalid parameters as part of the SSLv2 handshake.  Common Vulnerabilities and Exposures (CVE) classified the vulnerability under CVE-2004-0120. Microsoft identified such vulnerabilities in its security bulletin MS04-011 but until today the default configuration for Windows 2000 and Windows 2003 has SSL v2.0 protocol enabled.
To disable SSL V2 protocol:
1.
Click Start, click Run, type regedt32 or type regedit, and then click OK.
2.

In Registry Editor, locate the following registry key:

HKey_Local_Machine\System\CurrentControlSet\Control\SecurityProviders \SCHANNEL\Protocols\SSL 2.0\Server

3.
On the Edit menu, click Add Value.
4.
In the Data Type list, click DWORD.
5.

In the Value Name box, type Enabled, and then click OK.

Note If this value is present, double-click the value to edit its current value.

6.
Type 00000000 in Binary Editor to set the value of the new key equal to “0″.
7.
Click OK

sources: http://support.microsoft.com/kb/187498

testing ssl: http://foundeo.com/products/iis-weak-ssl-ciphers/test.cfm

, , , , ,

No Comments

Tip/Trick: Integrating ASP.NET Security with Classic ASP and Non-ASP.NET URLs

One of the questions I am often asked is “How can I integrate ASP.NET security with Classic ASP other non-ASP.NET URLs?”.  Specifically, people want to know if they can integrate ASP.NET’s Forms Authentication, Role Based Security, and URL Authorization features with Classic ASP, PHP, JSP, .HTM, .JPG and other non-ASP.NET URLs.

The good news is that this is pretty easy with ASP.NET 2.0 and IIS 6.0 today, and will get even easier in the IIS 7.0 timeframe.  The below blog post demonstrates how to integrate ASP.NET 2.0’s Forms Authentication and Login/Membership features with classic ASP and static .HTML files.

For a much more detailed walkthrough of how to achieve this (as well as how to integrate features like ASP.NET role based authorization with classic ASP applications), please read Chapter 6 of Stefan Schackow’s excellent ASP.NET 2.0 Security, Membership, and Role Management book. Read more

via: http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls.aspx

,

No Comments

Disable Digital Driver Signing in Windows 7

When you try to install some device drivers on Windows 7, you might come across a warning message that those drivers should be digitally signed. You can get disable this driver signing warning message in Windows 7 with the help of a workaround. How to disable Driver signing in Windows 7? Go to the Start menu and type cmd.exe in the Search Bar. Right click on cmd.exe and choose Run as Administrator. If you have the UAC turned on, choose Yes to proceed. Otherwise, you should see the command windows opened already. In the shell window, copy paste the following and hit Enter. bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS bcdedit.exe -set TESTSIGNING ON You’ll get a confirmation that the operation completed successfully, as you can see below: Restart your computer for the changes to take effect. You’ve just disabled digital driver signing in Windows 7.

via: http://www.killertechtips.com/2009/05/05/disable-driver-signing-windows-7/

No Comments

Intermediate Certification Authorities Error on Internet Explorer

An intermediate certification authority (CA) is a CA that is subordinate to the root CA by one or more levels and typically issues certificates to other CAs in the public key infrastructure (PKI) hierarchy. The other type of subordinate CA is an issuing CA. For native mode communication to be successful in a Configuration Manager 2007 site, the PKI certificates that are used for authentication, encryption, and signing must successfully chain to a trusted root. Certificate chaining is a native process of the Microsoft Windows operating system that involves collecting all the subordinate CAs up to the root CA and validating each certificate in the path. If one certificate in the chain cannot be located or is found to be invalid (for example, expired), the entire chain will be deemed invalid and Configuration Manager 2007 communication will fail.
[ http://technet.microsoft.com/en-us/library/bb693674.aspx ]

Steps to fix:
1. In INTERNET EXPLORE, navigate to TOOLS on the menu
2. Select the 4th tab “Content”
3. Click on “Certificates”, you then see a popup
4. Select 3rd tab “Intermediate Certification Authorities”
5. And remove www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign …OR…remove all CA that are expired
6. Close the browser, and open IE again

, , ,

No Comments

Javascript string method prototype ex. Remove(), ReplaceAll(), Trim()

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, “”); };

String.prototype.replaceAll = function(item,replacewith) {
var s = this;
while (s.indexOf(item) >= 0)
s = s.replace(item, replacewith);
return s;
}

String.prototype.remove = function(item) { return this.replaceAll(item, “”); }

function removeTags(str) {
var tags = ["<B>", "<b>", "</b>", "</B>", "&nbsp;"];
for (var i in tags)
str = str.remove(tags[i], “”);
return str;
}

, , , ,

No Comments

Javascript: Copy to clipboard with or without flash

function copy_to_clipboard(text)
{
if(window.clipboardData)
{
window.clipboardData.setData('text',text);
}
else
{
var clipboarddiv=document.getElementById('divclipboardswf');
if(clipboarddiv==null)
{
clipboarddiv=document.createElement('div');
clipboarddiv.setAttribute("name", "divclipboardswf");
clipboarddiv.setAttribute("id", "divclipboardswf");
document.body.appendChild(clipboarddiv);
}
clipboarddiv.innerHTML='<embed src="clipboard.swf" FlashVars="clipboard='+
encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
}
alert('The text is copied to your clipboard...');
return false;
}

http://www.webtips.co.in/postimg/clipboard.rar

via: http://www.webtips.co.in/javascript/copy-to-clipboard-with-javascript-on-mozilla-firefox-and-ie.aspx
also: http://code.google.com/p/zeroclipboard/

, , ,

No Comments

Audio streaming with A2DP bluetooth headset in windows /PC

Navtively, Mac OS X 10.5+  support A2DP, streaming audio/music.

However, Windows/PC doesn’t support A2dp, you will either need a usb dongle (adapter) , or a software solution below.

BlueSoleil 6

Windows 7, Windows Vista, Windows XP compatible.
Most main Bluetooth chipsets and notebooks are supported.
Transfer files wirelessly between your phone and computer.
Manage phone contacts and messages via BlueSoleil  on computer.

http://www.bluesoleil.com/Download/index.asp?topic=bluetooth-mobilephone-headset

Jabra BT8040 Bluetooth Headset (with a2dp support)

A small Bluetooth headset that is packed with features such as MultiPoint technology (the ability to connect to two different devices simultaneously), A2DP for streaming music wirelessly, plus an intelligent noise reduction and volume equalization technology that offers great sound quality.

http://www.jabra.com/Sites/Jabra/Na-us/products/Pages/JabraBT8040.aspx

, , , , , ,

No Comments

Appz: DBWin32 Version 2.2

DBWin32, the debug and trace message output capture and display utility for Windows NT, Win2K, XP, ME, ‘95 and ‘98!

This is the utility you’ve been looking for! It let’s you capture and display output generated by Win32 based programs using the OutputDebugString function (MFC programmers use this through the TRACE macro.) This is a great tool when running a debugger is too much of a hassle or is inappropriate. For example debugging Client/Server programs, Active X objects, Internet Server Extensions, NT Services, etc. It can even be used in live released systems to allow you to “look beneath the covers” of your running programs. And now, with version 2.2’s remote viewing capability you can watch output from multiple programs running on multiple PCs at the same time from one location.

  • Support for Windows ‘95/’98 with one time VXD installation. NO PROGRAM MODIFICATIONS REQUIRED!
  • Capture of 16 bit in addition to 32 bit output on NT and now on Windows ‘95/’98.
  • Remote display of output captured on one PC from another via a TCP/IP connection.
  • Logging to file facility.
  • Output tagging options including line number, date, time and process ID (for output captured under NT).
  • Decoupled UI and logging allows DBWin32 to keep up with very high output rates.
  • Setable internal buffer size allows DBWin32 to capture output for remote display at a later time.
  • Extensive options allow system to be configured in various modes:
    • Local output capture and display.
    • Local output capture for remote viewing.
    • Remote viewing of output being captured on another system.
    • Any mix of the above.
  • Numerous other features, display enhancements and bug fixes.
  • via: http://grantschenck.tripod.com/dbwinv2.htm; http://grantschenck.tripod.com/dbwinv2.zip

    , ,

    No Comments

    Appz: nLite – Windows Installation Customizer

    nLite – Windows Installation Customizer

    Screenshots (click to zoom)

    Have you ever wanted to remove Windows components like Media Player, Internet Explorer, Outlook Express, MSN Explorer, Messenger…
    How about not even to install them with Windows ?

    nLite is a tool for pre-installation Windows configuration and component removal at your choice. Optional bootable image ready for burning on media or testing in virtual machines.
    With nLite you will be able to have Windows installation which on install does not include, or even contain on media, the unwanted components.

    Features

    • Service Pack Integration
    • Component Removal
    • Unattended Setup
    • Driver Integration *
    • Hotfixes Integration **
    • Tweaks
    • Services Configuration
    • Patches ***
    • Bootable ISO creation

    * – Textmode (CD Boot) and normal PnP
    ** – hotfixes with white icons, *KB*.exe, including update packs
    and Internet Explorer 7
    ***- supports generic SFC, Uxtheme, TcpIp and Usb Polling patching.

    nLite supports Windows 2000, XP x86/x64 and 2003 x86/x64 in all languages.
    It needs .NET Framework 2.0 in order to run… Check if you have it already, maybe on some of your CDs before downloading if your connection is slow.

    You may report on the forum any bugs or annoyances found. And remember it is freeware, meaning that only fuel is a good word or a donation.

    via: http://www.nliteos.com/nlite.html

    ,

    No Comments

    How to enable Enable “clr enabled” configuration option

    If you are working with SQL server CLR objects there’s a higher possibility that you might encounter the following error.

    “Msg 6263, Level 16, State 1, Line 1
    Execution of user code in the .NET Framework is disabled. Enable “clr enabled” configuration option”

    To overcome this, you have to reconfigure the SQL server to enable CLR objects. To do that, you can use the following commands…

    exec sp_configure ‘clr_enable’,'1′

    RECONFIGURE

    Note : – CLR objects only works with SQL server 2005 and later versions.

    , , , ,

    No Comments

    Re-Register ASP.Net with IIS

    Background
    Various error conditions during installation or running the VersionOne application may be caused by issues with the ASP.Net setup within IIS. These issues can often be solved by re-registering ASP.Net with IIS to ensure the correct files are recognized by the web server. Use the Procedure below to run the IIS Registration tool.

    Process
    ASP.NET can be re-registered with IIS. The specific method depends on the operating system being used. For more information on ASP.Net and the IIS Registration tool, see the related links below.

    Windows 2000/XP

    To fix this on Windows 2000 or Windows XP, run this command from the Start>Run box or a command prompt (assuming the system directory is C:\Windows):

    .Net 1.1: C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i

    .Net 2.0: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

    Windows 2003

    On Windows 2003, ASP.NET must be both installed and enabled.  To install ASP.NET:

    On the taskbar, click the Start button, point to Control Panel, and then click Add or Remove Programs.
    In the Add or Remove Programs dialog box, click Add/Remove Windows Components.
    In the Components box in the Windows Components Wizard, click the Web Application Server check box, and then click Next.
    When the Windows Components Wizard has finished configuring Windows Server 2003, click Finish.
    To enable ASP.NET, run this command from the Start>Run box or a command prompt (assuming the system directory is C:\Windows):

    .Net 1.1: C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i -enable

    .Net 2.0: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -enable

    via: http://community.versionone.com/KnowledgeBase/FAQs/Q10089.aspx

    No Comments

    yahoo messenger “The webcam does not support the required image size” isight webcam

    Download this to fix:

    iSight patch For Yahoo Messanger

    via: http://igreatminds.blogspot.com/2009/02/webcam-does-not-support-required-image.html

    , , ,

    No Comments

    Find files in windows using Ms-Dos Command

    1. Run -> cmd
    2. cd\
    3. dir /s/b/l;find  “myfile.txt”

    , , , , ,

    No Comments

    Extensions and magic for products like Adobe Dreamweaver, Drupal, jQuery, Fireworks, Prototype, Flex

    http://www.xtnd.us/products

    and http://woork.blogspot.com/2009/01/16-outstanding-free-dreamweaver.html

    ,

    No Comments

    Google Tracking Migration

    Initialize page tracking with the functions below.

    Function Old Style New Style
    Account to track.
    Identifies the account number in which the page should be tracked.
    _uacct _gat._getTracker(urchinAccount)
    Track the page.
    Sends the page tracking data to the Google servers.
    urchinTracker(); _trackPageView(opt_pageURL)

    Together, the Initialization and Page Tracking functions should look like the code shown below.

    Old Style New Style

    <script type="text/javascript">
    _uacct = "UA-XXXXX-X";
    urchinTracker();
    </script>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-XXXXX-X");
    pageTracker._trackPageview();
    </script>


    Control data collection settings

    Back to Top

    By default Google Analytics will track a set of data elements, such as Flash versions and web browser information. You have the option to turn this detection off by using the functions listed below, but remember – once you do so, you will lose the data permanently.

    Control the amount of information you collect by using the functions listed below.

    Function Old Style New Style
    Collect browser attributes.
    Sets the browser tracking module. Controls collection of browser attributes. You can also learn how to disable client tracking for certain pages.
    _ufsc _setClientInfo(enable)
    Detect Flash version.
    Sets the Flash player version detection flag.
    _uflash _setDetectFlash(enable)
    Detect the page title.
    Sets the title detection flag. Learn how to configure GA to ignore titles.
    _utitle _setDetectTitle(enable)

    Together, the control data collection settings functions should look like the code below.

    Old Style New Style

    <script type="text/javascript">
    _uacct = "UA-XXXXX-X";
    _ufsc = 0; // track browser info
    _uhash = off; // cookie integrity checking using hashes
    _uflash = 0; // detect Flash version
    _utitle = 0; // track title in reports
    urchinTracker();
    </script>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setClientInfo(false);
    pageTracker._setAllowHash(false);
    pageTracker._setDetectFlash(false);
    pageTracker._setDetectTitle(false);
    pageTracker._trackPageview();
    </script>


    Tracking Subdomains and Third-Party Sites

    Back to Top

    Track a visitor across a site or multiple sites using links or forms with the functions listed below.

    Function Old Style New Style
    Share cookies with another domain via HREF or GET.
    Passes the cookies from visited site to another via query string parameters.
    __utmLinker(this.href); _link(targetUrl)
    Share cookies with another domain via POST.
    Passes the cookies from visited site to another by adding 0query string parameters in a POST form request.
    __utmLinkPost(this); _linkByPost(formObject)
    Enable linking to another domain.
    Sets the linker functionality flag.
    _ulink _setAllowLinker(true or false)
    Determine the domain for the tracking cookies.
    Use when linking across subdomains or to other domain names.
    _udn _setDomainName(newDomainName)

    The table below shows what the code will look like when you track multiple sites using a link versus a form.

    Tracking method Old Style New Style
    Using a link

    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _udn = "none";
    _ulink = 1;
    urchinTracker();
    </script>
    ...
    <a href="http://newsite.com/test.html"
    onclick="__utmLinker('http://newsite.com/test.html'); return false;">click me</a>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setDomainName("none");
    pageTracker._setAllowLinker(true);
    pageTracker._trackPageview();
    </script>
    ...
    <a href="http://newsite.com/test.html"
    onclick="pageTracker._link('http://newsite.com/test.html'); return
    false
    ;">click me</a>

    Using a form

    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _udn = "none";
    _ulink = 1;
    urchinTracker();
    </script>
    ...
    <form name="f" method="post" onsubmit="__utmLinkPost(this)">
    ...
    </form>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setDomainName("none");
    pageTracker._setAllowLinker(true);
    pageTracker._trackPageview();
    </script>
    ...
    <form name="f" method="post" onsubmit="pageTracker._linkByPost(this)">
    ...
    </form>


    E-Commerce Transaction Tracking

    Back to Top

    Track sales revenue and measure success with the funtions below.

    Function Old Style New Style
    Add a new item to an e-commerce transaction.
    The data in each item line follows a pipe (|) separated list.
    UTM:I|order-id|product name|category|total|quantity _addItem(orderId, sku, productName, variation, unitPrice, quantity)
    Add a new e-commerce transaction to track.
    The data in each transaction line follows a pipe (|) separated list.
    UTM:T|order-id|affiliation|total|tax|shipping|city|state|country _addTrans(orderId, store, total, tax, shippingFee, billingCity, billingState, billingCountry)
    Send transaction and item data to Google.
    Use after all the items are added to the transaction.
    __utmSetTrans(); _trackTrans()

    Use the code below on your receipt page to track your e-commerce transactions.

    Old Style New Style

    <script type="text/javascript">
    _uacct = "UA-12345-1";
    urchinTracker();
    </script>
    <form name="utmform" id="utmform">
    <textarea name="utmtrans" id="utmtrans" style="display:none">
    UTM:T|1234|Mountain View|11.99|1.29|5|San Jose|California|USA
    UTM:I|1234|DD44|T-Shirt|Green Medium|11.99|1

    </textarea>
    </form>
    <script type="text/javascript">
    __utmSetTrans();
    </script>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._trackPageview();
    pageTracker._addTrans(
    "1234", // order ID - required
    "Mountain View", // affiliation or store name
    "11.99", // total - required
    "1.29", // tax
    "5", // shipping
    "San Jose", // city
    "California", // state or province
    "USA" // country
    );
    pageTracker._addItem(
    "1234", // order ID - required
    "DD44", // SKU/code
    "T-Shirt", // product name
    "Green Medium", // category or variation
    "11.99", // unit price - required
    "1" // quantity - required
    );
    pageTracker._trackTrans();
    </script>


    Campaign Tracking

    Back to Top

    Configure your Google Analytics to track your campaigns using the functions shown below.

    Function Old Style New Style
    Set campaign tracking flag.
    Activates campaign tracking module.
    _uctm _setCampaignTrack(enable)
    Set campaign content key.
    Parses campaign content from URL. Use this information to create A/B tests with our free Website Optimizer tool.
    _ucct _setCampContentKey(newCampContentKey)
    Set the campaign ID key.
    Use to parse campaign ID from URL.
    _ucid _setCampIdKey(newCampIdKey)
    Set the campaign medium key.
    Use to parse campaign medium from URL.
    _ucmd _setCampMediumKey(newCampMedKey)
    Set the campaign name key.
    Use to parse campaign name from URL.
    _uccn _setCampNameKey(newCampNameKey)
    Set the campaign no-override key.
    Use to parse campaign no-override value from URL.
    _ucno _setCampNOKey(newCampNOKey)
    Set the campaign source key.
    Use to parse campaign source from URL.
    _ucsr _setCampSourceKey(newCampSrcKey)
    Set the campaign term/keyword key.
    Use to parse campaign term or keyword from URL. Should be used to track paid search advertising.
    _uctr _setCampTermKey(newCampTermKey)
    Set allow anchor usage flag for campaigns.
    When enabled, uses # instead of the default ? to separate the request stem from the query string.
    _uanchor _setAllowAnchor(enable)

    Try tracking campaigns with custom field names. Pass these names to the campaign functions on your landing pages so that Google Analytics can recognize your campaign information from your manually tagged URLs.

    Old Style New Style

    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _uccn = "ga_campaign"; // name [default: utm_campaign]
    _ucmd = "ga_medium"; // medium [default: utm_medium]
    _ucsr = "ga_source"; // source [default: utm_source]
    _uctr = "ga_term"; // term/keyword [default: utm_term]
    _ucct = "ga_content"; // content [default: utm_content]
    _ucid = "ga_id"; // id number [default: utm_id]
    _ucno = "ga_nooverride"; // don't override [default: utm_nooverride]
    urchinTracker();
    </script>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-XXXXX-X");
    pageTracker._setCampNameKey("ga_campaign"); // name
    pageTracker._setCampMediumKey("ga_medium"); // medium
    pageTracker._setCampSourceKey("ga_source"); // source
    pageTracker._setCampTermKey("ga_term"); // term/keyword
    pageTracker._setCampContentKey("ga_content"); // content
    pageTracker._setCampIdKey("ga_id"); // id number
    pageTracker._setCampNOKey("ga_nooverride"); // don't override
    pageTracker._trackPageview();
    </script>


    Customizations: Sources

    Back to Top

    Set keyword or referrer ignore preferences, or add new organic search engines to track.

    Function Old Style New Style
    Add new ignored organic keyword.
    List of keywords to ignore. Learn how you can treat certain referral sources as direct traffic.
    _uOno[] _addIgnoredOrganic(newIgnoredOrganicKeyword)
    Add new ignored referrer.
    List of referral domains to ignore.
    _uRno[] _addIgnoredRef(newIgnoredReferrer)
    Add new organic search engine to track.
    List of organic search engines to match automatically in referrals.
    _uOsr[]
    _uOkw[]
    _addOrganic(searchEngine, queryVariable)

    Look at the code below to see how you can configure Google Analytics to set ignore preferences and add organic search engines.

    In the example below, note that “41″ is within the brackets for the “add organic” functions. This number may change as Google Analytics is constantly adding more properties to its list of referred search engines. To see an up-to-date list, please visit http://www.google-analytics.com/urchin.js and change the number in the brackets within your urchin.js code accordingly.
    Old Style New Style

    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _uOno[0] = "ignore"; // keyword to treat as referral
    _uRno[0] = "urchin.com"; // referral to treat as direct
    _uOsr[41] = "new_search_engine"; // new search engine to treat as referral
    _uOkw[41] = "query"; // keyword query parameter for new search engine

    urchinTracker();
    </script>

    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._addIgnoredOrganic("ignore");
    pageTracker._addIgnoredRef("urchin.com");
    pageTracker._addOrganic("new_search_engine","q")
    ;
    pageTracker._trackPageview();

    </script>


    Customizations: Cookies

    Back to Top

    Reset and control your cookies so they serve your unique business needs.

    Function Old Style New Style
    Set flag to allow domain hash.
    Create a unique domain hash (or numerical representation) of the domain name, which is then put into cookies. Look at controlling data collection settings to see how this is supposed to be implemented into the code.
    _uhash _setAllowHash(true or false)
    Set new default cookie path.
    Controls the path in the request used to determine what cookies are (re)set and delivers to the requesting site. By default, Google Analytics sets the cookie path to /. If you would like to change this, send your preferred cookie path to the _setCookiePath function.
    _utcp


    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _utcp = "/path/of/cookie/";
    urchinTracker();
    </script>

    _setCookiePath(newCookiePath)

    ….
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setCookiePath("/path/of/cookie/");
    pageTracker._trackPageview();
    </script>

    Set new default cookie expiration time.
    Set the campaign tracking cookie timeout in seconds. Google Analytics credits the most recent campaign if conversion happens within six months, but you customize the timeout by sending the desired number of seconds to the _setCookieTimeout function.
    _ucto


    <script type="text/javascript">
    _uacct = "UA-XXXXX-X";
    _ucto = "31536000"; // the number of seconds in 1 year
    urchinTracker();
    </script>

    _setCookieTimeout(newDefaultTimeout)


    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setCookieTimeout("31536000");
    pageTracker._trackPageview();
    </script>

    Set the new session timeout in seconds.
    The standard session timeout is 30 minutes, but you can customize it to what works for your business. Please use this function carefully since this very important setting is used to compute visits.
    _utimeout


    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _utimeout = "3600"; // the number of seconds in 1 hour
    urchinTracker();
    </script>

    _setSessionTimeout(newTimeout)


    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._setSessionTimeout("3600");
    pageTracker._trackPageview();
    </script>

    Set user defined value.
    Set the visitor segmentation cookie to help classify the types of visitors coming to your site. For example: new customer vs. prospect, or cat owner vs. dog owner.
    __utmSetVar(newVal);


    <script type="text/javascript">
    _uacct = "UA-12345-1";
    urchinTracker();
    __utmSetVar("test_value");
    </script>

    _setVar(newVal)


    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-12345-1");
    pageTracker._trackPageview();
    pageTracker._setVar("test_value");
    </script>

    Get the session ID.
    Return the session ID from the __utma cookie.
    __utmVisitorCode(); _visitCode()

    Customizations: Using a Local Server

    Back to Top
    Function Old Style New Style
    Set the new local GIF path.
    Set the file system path to the __utm.gif file.
    _ugifpath _setLocalGifPath(newLocalGifPath)
    Set operation in both local and remote server mode.
    Sends data to both Google Analytics backend server and local server. Local server path is determined by _setLocalGifPath() value. Please note that you can track Google Analytis and Urchin software by calling this function in the tracking code.
    _userv = 2;


    <script type="text/javascript">
    _uacct = "UA-12345-1";
    _userv = 2;
    urchinTracker();
    </script>

    _setLocalRemoteServerMode()


    <script type=”text/javascript”>
    var pageTracker = _gat._getTracker(“UA-12345-1″);
    pageTracker._setLocalRemoteServerMode();
    pageTracker._trackPageview();
    </script>

    Set operation in local server mode.
    Sends data to a local server. Path to local server is determined by _setLocalGifPath() value.
    _userv = 0; _setLocalServerMode()
    Set operation in remote server mode.
    Sends data to Google Analytics backend server.
    _userv = 1; _setRemoteServerMode()

    https://www.google.com/analytics/settings/check_status_profile_handler?id=1968019

    ,

    No Comments