I am sending out emails that contain a link to a page that serves up a file
for the user to download via cfheaaer and cfcontent.

<cfheader
name="Content-Disposition" value="attachment;
filename=#selectDoc.documentName#">
<cfcontent
file="#request.docPath##selectDoc.documentName#"
type="application/x-unknown" />

This works fine, but I need to get around one hurdle. Basically if the user
is not logged in when they click the link in their email, then are prompted
to login. Once their login has been verified, I send them to their
download... And here is where my issue is.

I am using cflogin/cfloginuser to handle security and when I authenticate
the user and cflocate them to the download page which prompts them to
download the file, before the location bar changes the user is presented
with the download prompt and can get the file ok, but once the download
completes the page now shows the login screen and not the page where the
download took place? Does this make sense? I am thinking that it has to do
with the cfheader and cfcontent usage, and I am not sure what to do to be
able to relocate the user after a download or display a link for them to
click etc..

Hope that all made sense.

Mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to