clevow Posted November 28, 2001 Posted November 28, 2001 Does anyone know if it's possible to use or capture the referring URL with FileMaker? I want to set a cookie only if a page is referred from our campus authentication page. Thanks, Carrie
Jeff Spall Posted November 28, 2001 Posted November 28, 2001 Hi, I use 'http_referer' for a very similar purpose, but I found I had to use SSI as Filemaker doesn't recognise the command. it would work like this: <!--#hide--><!--#show var="HTTP_REFERER" value="http://myfilemakerdomain:591/directorypath/FMPro"--> [FMP-SETCOOKIE: =mycookiestuff] rest of the page <!--#show--> <!--#hide var="HTTP_REFERER" value="http://myfilemakerdomain:591/directorypath/FMPro"--> access denied I also had HUGE cross-browser problems with these FileMaker cookies which refused to work with Windows Explorer - see the 'help with web page cookie' thread in the 'services/solutions wanted'section regards, jeff
clevow Posted November 28, 2001 Author Posted November 28, 2001 Could you be a little more specific on the use of the SSI? I've not used them before. I added in your text, changed the path, enabled SSI for .html pages on IIS. I don't know what's supposed to actually happen. And then what can you do with it? Thanks, Carrie
Anatoli Posted November 29, 2001 Posted November 29, 2001 You can also get Referrer URL with JavaScript, but SSI is better.
Jeff Spall Posted December 2, 2001 Posted December 2, 2001 Hi, sorry to be so long replying. The SSI are a command set that is native to Unix and Linux and also ported to Webstar with the same syntax. I believe that NT webservers also support it, but the syntax might be different. The example I posted should work on all three platforms, but you'll have to check the manual for one of Mr G's boxes! It's actually a really simple language with not many actions, but as you can nest a lot of simple commands you can do quite a lot. Its great advantage is that it is totally server-side and the commands don't get transmitted at all, so it can be more secure that either cookies or Javascript in the page, both of which can be read by the nerds. regards, jeff [ December 04, 2001: Message edited by: Jeff Spall ]
Garry Claridge Posted January 25, 2002 Posted January 25, 2002 Try [FMP-Link: ] You can read more about it in the "CDML Reference" database. Also, look at [FMP-ClientAddress] and [FMP-ClientIP]. All the best. Garry [ January 25, 2002: Message edited by: Garry Claridge ]
Newbies daminsky Posted January 26, 2002 Newbies Posted January 26, 2002 Carrie (or anyone): Did you get this to work with SSI? How would this be done on NT and using the built-in FileMaker Unlimited webserver, which doesn't support SSI? Thanks in advance.
clevow Posted January 26, 2002 Author Posted January 26, 2002 I didn't, but if you find out, I'd be interested in knowing. I gave up on it.
Recommended Posts
This topic is 8329 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now