I am having trouble with the session variables. I know there must be a simple 
solution but this is the first time i have used them and not sure what i am 
doing wrong.

I am trying to assign a structure to the session variable in one page and then 
use that session structure in the forms action page.

In the first page i am trying to assign it as as follows:

<cfscript>
      student = StructNew();
      student.name = "Fred"
      session.student = student;
</cfscript>

then in the action page i am trying to call it as follows:

<cfif form.studentName neq session.student.name>
  <cfoutput>not found</cfoutput>
<cfelse>
  <cfoutput>found</cfoutput>
</cfif>

it is telling me that the session variable is undefined

thanks for any help

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254116
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to