Keeping track of the user's visited links

Imagine a website that enables you too see which of its pages
you've already visited. Not only by displaying different colors on
the links..
I am trying to make a diagram that shows where the user was,
which pages were visited first and which were visited last.
any sugestions...? maybe with php?
cheers

The traditional way to do this is with a redirect. Basically you have a servlet or JSP that will be called anytime anyone clicks on a like. It contains a redirect parameter. For example, your HTML might look something like:
<a href="http://www.yourdomain.tld/redirector.jsp?linkid=1234" />Then, in redirector.jsp you look up in, likely, a database what linkid 1234 is. Assuming you find it you update your database with whatever information you want about link 1234 and send a redirect to the URL that link 1234 is for.

Similar Messages

  • How to keep track of the users who are all currently logged in

    Hi All,
    I have basic knowledge of Session and Servlets. I am wondering how to keep track of the users who are all currently logged in. There should be some way of achieving it.
    I thought of it and come up with having an Application variable that hold it when ever a user successfully logged in.
    Thanks in advance for any reply.

    You can do this by keeping data in a static veriable in a some class of yours. The variable will need to be a collection.
    Whenever a user loogs in to the site a servlet/jsp should put the users information in to the collection and when logs off or when the session expires the entry should be take off.
    You can achive this by storing the velues in a some sort of a week collection where the entries are automaticaly removed when all the other refferences to the entry goes out of scope.
    You might need to read bit about java.lang.ref package and WeekReference
    Or you can make the entry in the collection contain the last time that the user visited any of the pages and a thread can run time to time and clean up the older entries which have timed out

  • Keep track of the shopping cart for anonymous user

    Hi,
    I have the following problem on b2c site. Anonymous user can browse through the site and adds items to the shopping cart. At the checkout the login page is prompted, however login page is located on the different application server where the actual login happening. After that control is returned to my server where I need to create login object and associate the shopping cart with it. My problem is how to maintain shopping cart without losing it.
    I came with that solution : On checkout attach shopping cart to context object with unique key, then pass this unique key to the remote server, then remote server passes it back to me together with the login id, then I create new session and attach shopping cart to it after retrieving shopping cart from the context.
    I hope it will work, however I think there is a standard solution for this type of the problems. Any ideas, hints, suggestions are strongly appreciated.
    We use WebLogic 9.0 and Servlets.

    Do you have a problem keeping track of the shopping cart for a user who is logged in? No, I didn't think so. So give the anonymous user an internal name, just for your own convenience. Then keep track of the shopping cart for the user with that name. You already know how to do that.

  • How to keep track of how many times a link has been clicked?

    How to keep track of how many times a link has been clicked or accessed? Do I need to use database for this?

    Hi
    Proably something like this can work,
    1> Have a servlet/bean invoked when the link is linked
    2> have a static variable in that servlet/bean wich gets incremented before the control is passed to another desired page..
    The problem with this approach is that care has to be taken that the servlet/bean is not re-instalised, in case of which the static variable will also be instalised and the data would be lost.
    The best thing is to store the count in the database.
    Regards
    Arathi.

  • How to keep track of the sequence of the BSP Pages being invoked.

    Hi,
    How to keep track of the sequence of the BSP Pages being invoked.
    I have a BSP Page A.htm. There are two other pages B.HTM and C.HTM in the same BSP Application.
    The page B.HTM has a link A.HTM. The page C.HTM also has a link A.HTM. On clicking  these links the Page A.HTM would be invoked. Is there any way to keep track which BSP Page  (i.e B.HTM or C.HTM) invoked the page A.HTM.
    Any input on this Regard would be of great help.
    Thanks and Regards,
    Pavithra

    Hi Pavithra,
    Declare in page attributes:
    appl_url type string
    In the onClick event of the link that calls the A.htm page , use:
    call method runtime->get_url
    receiving
    URL = appl_url.
    Now appl_url contains the url (also name) of the page that invoked A.htm .
    Hope it helps.
    Anubhav.

  • How to keep track of the filter/choices in a dashboard

    Hello all,
    I have created an analysis which contains the following columns: YEAR, TRANSACTION DESCRIPTION, NO OF TRANSACTION
    I have added the above analysis in a dashboard tab. When I click a particular TRANSACTION DESCRIPTION it can get further drill down in time hierarchy like below:
    YEAR     QUARTER     MONTH     TRANSACTION DESCRIPTION     NO OF TRANSACTION
    2012        Q1               JANUARY                      X                                        10
    2012        Q1               FEBRUARY                   X                                        20
    2012        Q1               MARCH                         X                                        30
    I was wondering if there is way to keep track of the drill-down in the analysis or dashboard, for example
    2012> Q1> JANUARY    
    so that the user can know he is exactly.
    Thanks in advance for your time.
    Konstantina

    Hi Konstantina,
    Yes You can do like that 2012-->q1-->January
    Steps:
    1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
    2. Drag the Year column from period dimension table to the dimension hierarchy of year.
    3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
    4. Drag the month column from period dimension table to the dimension hierarchy of month.
    5. Drag the hierarchy to period dimension table in presentation layer.
    In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
    For more refer : http://mkashu.blogspot.com
    Regards
    VG

  • Keeping track of the number of hits

    Hi,
    I'm developing a website in JSP and what I want is to keep track of how many times a link on my site has been clicked on...
    Let me explain a little further: I have a links section with all types of links and i want to know how often these links are used
    Now, what's the "best" solution for this problem?
    Putting my links in a database or a just a file or XML, and how can I detect when someone has clicked on that link?
    Every solution is welcome
    Thx in advance
    GekkeGwuido

    The traditional way to do this is with a redirect. Basically you have a servlet or JSP that will be called anytime anyone clicks on a like. It contains a redirect parameter. For example, your HTML might look something like:
    <a href="http://www.yourdomain.tld/redirector.jsp?linkid=1234" />Then, in redirector.jsp you look up in, likely, a database what linkid 1234 is. Assuming you find it you update your database with whatever information you want about link 1234 and send a redirect to the URL that link 1234 is for.

  • [svn:fx-trunk] 11641: A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks , not just alpha masks.

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to keep track of the changes done in ALV GRID Report

    Hi Experts,
    how to keep track of the changed record in ALV GRID Report. how to set the field to be editable even for the entire row also. Can anybody guide along with code also?...
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep Track of the wagetype Changes

    Hi Experts,
    How to keep Track of the Changes after changing the wagetype values.If any body has made changes to the existing wagetype, how do we keep a track of what changes has done, is there any standard Tcode through  which we can get the information.
    Thanks in advance,
    Regards,
    Magesh.S

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • Is it possible to create a variable that tells you which slides the user has visited?

    Hi there.
    I'm working on a project where I want a slide to show a continue button and hide 2 textboxes, but ONLY when the user has already visited 2 other slides. I can only find variables that tell you the slide the user previously visited.
    Is it possible to set up a variable that does this?
    I want to create the following advanced action:
    If the user has visited slides 62 AND 87, show image_536 and hide text_caption_243 and text_caption_242
    I don't want the action to happen if only 1 of the 2 slides have been visited - it has to happen when both have been visited.
    Hope that makes sense.
    I'm using Captivate 7.
    Thanks.

    You will need two variables, it can be booleans. I'll label them v_one and v_two with a default value of 0
    Since I don't know how the slides are formatted, do you use a Next button or are all the slide frames visited? You'll need to have an event on those two slides to trigger an action:
    Assign v_one with 1     on slide 62
    And a similar action on the other slide to toggle v_two (do not use the toggle command, if the user visits a slide twice, it would be toggled back to 0).
    You didn't specify where those text containers have to be (please, label your objects and slides)? But you'll need conditional advanced action triggered by another event somewhere:
       IF v_one is equal to 1   AND
           v_two is equal to 1
      Show text1
      Show text2

  • Tracking down the user who updates a PDP (Project Detail Page)

    Hi guys,
    I have a custom field called Project Status that is used in some PDP in Project Server. When users update this field, we need to know who did the update. Is there a way to track down the user who populated some info on this field? Does Project Server do
    an audit of some sort on these kinds of things?
    Thanks.
    Regards,
    Kwazi

    Hi Mike,
    Thanks for the response. I want to write a stored procedure to script this though. Do you know which tables holds information about  Queue
    jobs(?
    Thanks.
    Kwazi

  • From time to time when I click a searched link the colr of visited links does not change. It works fine after I delete history and cookies. Can I fix that. I am using windows XP. Thankste

    From time to time when I click a searched link the color of visited links does not change. It works fine after I delete history and cookies. Can I fix that. I am using windows XP. Thanks

    Here's the error message I get.
    Note the TC is connected to my Airport Extreme via ethernet and my iMac is also connected to the AX via ethernet so it's not a wifi issue.
    I can see the TC in the finder so it's not 'gone' from the network either.
    Also note that just then the TM system pref pane was claiming a backup error, citing my 'network password' and still refusing to backup.  I waited 5 minutes and did some tidying of my office while I pondered this and then tried again and voila it worked ok.

  • Keeping track of the time i work on a project

    Is there a program that will keep track of the time i work on a project?

    Three really good ones.
    A clock, a piece of paper and a pencil.
    Or a clock and EXCEL.
    OR...you can get one of those time clocks that they have on those REALLY strict jobs, like at McDonalds. The stuff you see the Flintstones using...minus the dinosaur.
    Sorry...I don't know of anything...just lightening the mood.
    Shane

Maybe you are looking for

  • Choosing a file using a file browser in a dialog

    Hi, I'm writing a script and i want it to have a "browse" button so i can choose e file in a file browser. I checked out InDesign's dialog elements and i couldn't find it. any ideas?

  • CS6 Artboard Issue??

    Did something change with artboards from CS5 to CS6 in Illustrator? We are running Illustrator CS6 64bit and everything seams to be about as smooth as a babies bottom "EXCEPT" ARTBOARDS... It's making us crazy! In CS5 we used the arboard as a crop be

  • How to see invisible files

    How do you see invisible files on the romote side of the site window? I've got some .htaccess files, which are supposedly invisible on the Mac system, though they're visible on my local site window. If I upload them, I can see them until I quit Dream

  • PDF Open Parameters: nameddest

    Reading: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf I found following parameter: nameddest=name (Specifies a named destination in the PDF). Such named destination seems not to be a bookmark. What is it? How can I add

  • Can I have JavaScript in an XSLT stylesheet?

    I posted this first on the Dreamweaver forum, and it was suggested that I post here instead... I have two related (I think) problems. I am using Dreamweaver CS4 in Windows XP, Service Pack 3. I have created an XSLT stylesheet that transforms a simple