Session variable reverting to default value.
Hi, I have created a page builder of sorts using form inputs. This was working correctly until a few hours ago and I dont know what happened or what I did to cause this issue. The issue is with the "fileName" form input. When a user inputs a filename, it's saved as an html file. In my application.cfm file, I have set fileName as the cfparam with a default value= "none".
Not only does the default value get used, but most of my form variables are not passed either.
here is my application code:
<!--- Name application, and enable Application variables --->
<cfapplication name="pageBuilder2" sessionmanagement="Yes">
<cfparam name="SESSION.fileName" default="" type="any">
<cfparam name="SESSION.styleSheet" default="" type="any">
Here is my form page with the input fields:
<table>
<tr>
<th width="258" bgcolor="#CCCCCC">Page File Name:</th>
<td width="253"><cfinput type="text" name="filename" id="fileName" value="#SESSION.fileName#"></td>
<th width="73" bgcolor="#CCCCCC">Page Title:</th>
<td width="144"><cfinput type="text" name="pageTitle" id="pageTitle" value="#SESSION.pageTitle#"></td>
<th width="114" bgcolor="#CCCCCC">Page StyleSheet:</th>
<td width="191"><cfinput type="text" name="styleSheet" id="styleSheet" value="#SESSION.styleSheet#"></td>
</tr></table>
Here is where I set my SESSION variables to = my FORM variables:
<cfset SESSION.fileName = FORM.fileName>
