Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFCATCH/CFTRY-CFERROR

Participant ,
Dec 30, 2007 Dec 30, 2007
I am getting this error message when my users attempt to return to my site with an expired SESSION variable.

Element FNAME is undefined in SESSION

I could possibly fix the error but it would be difficult.........

Since I know its going to occur ...

How would I use CFCATCH/CFTRY-CFERROR to catch this error and redirect these users to the login screen?

PAT
615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 30, 2007 Dec 30, 2007
The isDefined function may be useful. Details are in the cfml reference manual. If you don't have one, the internet does.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 31, 2007 Dec 31, 2007
LATEST
It is not really approprite to use try-catch or cferror, as the error is not an exception. I would follow Dan's advice, and do the isDefined test in Application.cfc or Application.cfm.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources