On 3/15/2013 11:43 AM, fun and learning wrote:
>
> I am converting a hidden variable to session variable. I am setting a session
> variable when a page loads. The page consists of a form
>
> <cfset session.host = cgi.remotehost>
>
> When the form is submitted, the session variable is saved to a file. The form
> submits to the same page except there is a condition,
>
> <cfif isdefined("form.submit)">
> <cfinclude template="savetofile.cfm">
> </cfif>
>
> The problem is when I submit the form on my computer, the session variable
> exists and form submission works fine. But when I asked some other people at
> my office to test, they get 'Element host is undefined in session' on form's
> submission.Looks like it is failing in savetofile.cfm. Why could this be
> happening?
CGI.REMOTE_HOST? Not sure you have to have an underscore, but that is
what I thought.
--
LinkedIn: http://www.linkedin.com/pub/8/a4/60
Twitter: http://twitter.com/RogerTheGeek
Google+: https://plus.google.com/117357905892731200369
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355029
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm