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

sessiontimeout problem

Guest
May 14, 2013 May 14, 2013

Trying to make a variable go away after a certain amount of time.

This is in application.cfm

<cfapplication name="testtag" sessionmanagement="yes" sessiontimeout="#createtimespan(0,0,0,10)#">

<cfparam name="session.test" default="a">

This is in another template

<cfif structkeyexists(session,'test')>

there

<cfelse>

gone

</cfif>

Session.test lasts and lasts and want it to go away to make a timer but session.test is staying, getting reset, or something.

What am I doing wrong?

TOPICS
Getting started
493
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

correct answers 1 Correct answer

LEGEND , May 15, 2013 May 15, 2013

It will always exist because application.cfm/cfc is run with every page load - you are paraming the session, so it will run, every time, creating the session variable if it doesn't exist.

^_^

Translate
LEGEND ,
May 15, 2013 May 15, 2013
LATEST

It will always exist because application.cfm/cfc is run with every page load - you are paraming the session, so it will run, every time, creating the session variable if it doesn't exist.

^_^

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