I have a page which allows access only if a user is coming from a specific page, and I 
use http_referer to grant or deny access.  But I don't think Opera gives this 
variable.  can anyone else verify that?   And how do you get around it? 

The situation is people buy access to an article or series of articles
through an online shop, and I am reasoning that if they have got as far as page 
101625, they must have paid or been given appropriate access. (that means I can leave 
it to the guy who looks after page 101625 to make sure he restricts access 
appropriately.  The code I'm using is as follows:   

<cfif isdefined("HTTP_REFERER") AND
(

<!---- if he's coming from the article page ----->
(#HTTP_REFERER# contains "#articleID#")
OR
<!---- or he is coming back from the results page for another go round
--->
(#HTTP_REFERER# contains "#calcfilename#")
)

>

<!---- if that's the case do nothing, i.e. let him in ---->
 <cfelse>
                                                                        

<!--- Otherwise send him to the head page of the article, where
the user will be bounced if not logged in --->

<cflocation
url="http://www.mydomain.com/goArticle.asp?ID=#articleID#&p=01";>
<cfabort>
</cfif>


Can anyone see the flaw in this snippet that lets it work for IE and NN
but not for Opera?

Cheers
Mike Kear
AFP Webworks
Windsor, NSW, Australia
                                                                              
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to