| | |
session level variables
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 4
Reputation:
Solved Threads: 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
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
•
•
Join Date: Jan 2009
Posts: 20
Reputation:
Solved Threads: 1
Hi,
To enable session variables on your pages you need to define the following at the top of each page:
You should then be able to access your session variables that you define.
Jedimatt
To enable session variables on your pages you need to define the following at the top of each page:
coldfusion Syntax (Toggle Plain Text)
<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
Last edited by peter_budo; Jan 8th, 2009 at 9:38 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Cannot find server or DNS Error - please help! (Viruses, Spyware and other Nasties)
- Loops (PHP)
- registration (ASP.NET)
- new to PHP and need help (PHP)
- Remove Hidden Windows Components (Windows tips 'n' tweaks)
- login Access Level (VB.NET)
- Session Variable clashing (ASP.NET)
- I lack focus... (Java)
Other Threads in the ColdFusion Forum
- Previous Thread: stop page refreshing
- Next Thread: Spellcheck and CFExecute
| Thread Tools | Search this Thread |





