A simple solution is to create a session variable with a random name and then store the required filename/path in a session variable. Pass the session var name in the url. The template that returns the file via <cfcontent> then tests for existance of the session variable and if valid uses the value of the session variable.
Johan Steenkamp
www.assetnow.com
----- Original Message -----
From: James Milks
To: CF-Talk
Sent: Thursday, October 09, 2003 8:24 AM
Subject: Hiding file name passed to CFCONTENT
Hi,
Yet another cfontent question: How do I hide the name of the file I am passing to a CF content tag. For example, I have a listing of rows with links to several PDF files. I want to avoid putting the absolute path in the link in case someone looks at the source. Paranoid?
Anyhow, I messed around with the Encrypt function, but cannot get it to work, and don't feel like coming up with a databse solution because of time constraints. Any info appreciated.
J
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Hiding file name passed to CFCONTENT James Milks
- Johan Steenkamp