Element sessionID is undefined Coldfusion -
i have test server , live server of coldfusion. in both have hosted same project , using value of sessionid in both test , live server session. in live server ,surprisingly saying sessionid undefined in session. have enabled option "enable j2ee session variable" in cfadmin , error resolved. have analyzed test server , found sessionid present in session without checking option "enable j2ee session variable".. how can possible?
you check if scope cascading (scope precedence) turned off in coldfusion admin panel. 'scopes'. depends on cfml-engine running find it. or scope variable, like: #session.sessionid#
i recommend scope variables, because: - scope precendence slow down performance server must cycle through different possible scopes. - code more readable if scope variables correctly , make less mistakes
Comments
Post a Comment