Forum Moderators: coopster

Message Too Old, No Replies

PHP & Browser history verification

How can I confirm a page has been seen?

         

Sarien

2:48 am on Apr 28, 2004 (gmt 0)

10+ Year Member



I am looking for the easiest way of verifiying that a user has visited a link from my site.

The Intent:
I have a dynamic (non cacheable) page that shows a list of links. When the visitor clicks a link, a counter is updated and I redirect the visitor to the site.

At the target site, the user must submit a form. After the form is submitted, the target site dynamically refreshes the visited url and now displays "User is verified".

The visitor must now hit the <back> button to return to my site. The list of links is refreshed to delete the link the user has just visited and the user is presented with an updated list of links - to repeat the same process, being verified at the next site.

How can I confirm that the text "User is verified" was displayed upon return to my site? (Or during the course of the visit?)

I am using PHP to do this and want to stay server side if possible. I can do everything above except confirm that the "user is verified" phrase has been displayed.

I have considered using frames to watch for the phrase with the visited site trapped in another frame, but am uncertain as to how to do this. Does anyone have any recommendations or examples? (Go easy, I am not fluent in PHP but can mumble it incoherently.)

Thanks in advance.

jatar_k

3:02 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Sarien,

problem is that if the "User is verified" is displayed on another site it would up to them to tag the user somehow so you can verify them.

Do you control this other site?

<added>curl [ca.php.net] is the only thing that comes to mind

Sarien

3:24 am on Apr 28, 2004 (gmt 0)

10+ Year Member



No, I do not control the other sites. The only thing that would be consistent is the phrase "User is verified".

DrDoc

4:49 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



curl or LWP would work to fetch the page...