hi,
I am new to Cold fusion...
I have defined a session level variable in one page1.cfm as follows
<cfset session.testing = "test">
and when I am trying to access it on another page page2.cfm (browser window is not closed meanwhile) it gives an error that "testing" is undefined at page2.cfm. Can someone plz explain why is that so... n help me how can i do this... as i need to access testing on page2.cfm...

thnx in advance

Hi,

To enable session variables on your pages you need to define the following at the top of each page:

<cfapplication name="Your application Name" 
sessionmanagement="Yes"
sessiontimeout=#CreateTimeSpan(0,0,45,0)#>

You should then be able to access your session variables that you define.

Jedimatt

ok... thanku so much... It really helped me
now I am able to do what i was wanting to do...
thnx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.