Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
maslinc #1
Cfcontent and session variables
Our site allows members to download mpg files through cfcontent. Our basic
code is:
<CFSET TEMP_PATH=GetDirectoryFromPath(GetCurrentTemplateP ath()) &
"../VideoFolder">
<CFSET DownloadFile="#temp_path#\#VideoURL#">
<CFHEADER NAME="Content-Disposition" VALUE="inline;filename=#VideoURL#">
<CFCONTENT TYPE="media/mpg" file="#DownloadFile#" deletefile="no">
In our application.cfm file, we set our member log in status to no by default
with
<CFPARAM NAME="SESSION.Auth.IsLoggedIn" default="NO">
And when they log in, we set the variable to logged in with:
<CFSET SESSION.Auth=StructNew()>
<CFSET SESSION.Auth.IsLoggedIn="Yes">
This all works great on my computer but I have discovered that for some
members, once they download a video using the cfcontent server, they are
automatically logged out and have to log in again to view additional videos.
Does anyone have any ideas as to why this happens and how to fix it. I cannot
recreate this problem on my computer but I know it is happening with many of
our members.
Thanks for any help!
Coop
maslinc Guest
-
#39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug... -
#39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug... -
Using CFCONTENT with Dynamic Variables
If I hardcode all of the values for a force file download using CFCONTENT, I can save the file just fine. But the problem is that I want to reuse... -
Session problem when setting session variables in files that are in different directories
I am running PHP 4.3.0 on a WinXPpro machine and I recently got problem with sessions. What I am building is a loginsystem and I need to save... -
variables that change session variables
Hi, I'm currently writing a mulit-page form app that uses a session to retain data from each form element in order for the user to jump between...



Reply With Quote

