"Brian" wrote in message
news:310C221E-CED4-45CD-9A95-...
: thanks for the reply...
:
: but - if they go and open a different album and then come back to this one
in the same session, i dont want it to increment again.... the problem is
caused by having lots of albums. i want it to increment for each album they
view, but not if they return to an album they have already viewed in the
same session... any ideas ?
I can think of two:
1. index each album they view and check the index before incrementing the
counter
2. use binary and assign a different value to each index, using a running
total of the total number of unique views and the index value, you can
determine if they have viewed the album.
#1 is easier to implement. Put a dynamic array in a session variable and
redimension it when you need to add another element. Search the array
before incrementing the counter, branching to add if it returns false or
exit if it returns true.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp