0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by thesaintbug
0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.