Browser Tools (BT)
Developer Documentation Pages

c c++ j JS p vb <<-- -->>

VisitCookie()


      Call to bump once-per-session visit counters and data



Parameters:
  CounterNum    A counter number from 0 to 94.  Which will be bumped
                once per a session (browser start/stop). Counter
                number 0 is special and counts the entire site.  Counter
                1 through 94 may be used to count specific pages.
                No matter which counter number of 1-94 you bump first,
                counter zero will be bumped along with it.

  days          How long to let the cookie linger on the client machine.

  debounce      The number of hours between automatcially starting a
                new session.  If this is not provided a session will
                last until the browser is restarted.



Headers:
    bt.jso


Return value:
 There are two arrays holding all the visit counters  The arrays
 are
  V1c2p       Holds the array of permentent visit cookies.
  V1c2s       Holds the array of session visit cookie flags.

 The arrays both hold the indexes:
      0       The First Page Entered cookie.
      1       The First Referer cookie.
      2       Blank space, reserved.
      3       Blank space. reserved.
      4       Blank space reserved.
      5       Visit counter 0(full site) or Visit Counter 0 session flag.
      6       Visit counter 1 or VC1 session flag.
      ...     More VC or VCs elements.
      99      Last Visit counter possible.


Comment:



Examples:
    in your header section:

    <SCRIPT LANGUAGE="JavaScript" SRC="/MyScripts/bt.js"<
    </SCRIPT>

    <SCRIPT LANGUAGE="JavaScript">

       VisitCookie(5);  // bump visit counter number 5 if it hasn't
                        // been bumped already in this session
    </SCRIPT>

See Also:


Test:


History:
    20010415    DJR         Created

© Copyright 2001-2002, Creativyst, Inc., All rights are reserved.


[ Toc (bt)]