Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variables???

Status
Not open for further replies.

blally

Programmer
Aug 22, 2000
3
US
I am new to cold fusion and dont know if I like it.

With that said, does anyone know of a reason why a session variable will work on some machines and not others. The code works on at least two machines but will not work on my home machine.

<cflock timeout=30 name=session.sessionid type=readonly>
<cfset sid = session.sid>
</cflock>

And is it me or are there multiple ways to call a variable (with # and without) does it matter which you use?

Back to the point. I keep getting errors saying the session.sid had been misspelled or has not be defined.

Any and all help would be appreciated.

Brian
 
Try <cfset sid = session.sessionid>

Regarding the #'s. As a general rule, if you using variables inside <cf... > tags, you don't need #'. eg <cfset variable1 = variable2> But if the variable is between <cf... > tags, then you do. eg <cfoutput>#variable_name#</cfoutput>.

Hope this helps.

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top