Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jiecoldfusion #1
How to test seesion expired
<cfif IsDefined("Session.accounts_pk") and IsDefined("Session.org_pk")>
... some code
</cfif>
after seesion expired, above the "if statement" can not block process. and
coldfusion debugger tell error happens inside cfif block, (undefine seesion
variable "Session.accounts_pk" )
Can someone help me? Is that something wrong with fuction Isdefine()?
Thank you1
jiecoldfusion Guest
-
[PHP] Logged Out of Seesion, Then use back button
Sorry Didier, your suggestion did not solve the problem. I appreciate the information though! I'm still having the "back" button problem in the... -
Logged Out of Seesion, Then use back button
Hello, I've googled to try to find an answer to this. I've also checked the php.net site. Perhaps I'm not using the correct search parameters. ... -
Test::Unit -- multiple errors in test method ???
Hi ! I have been writing some unit tests with Test::Unit. I've noted that when an assertion fails in a test method, the remaining assertions... -
Method test::unit::TestSuite#<<(test)
Hi, I suggest to change the definition of this method slightly: current: # Adds the test to the suite. def <<(test) @tests << test end -
The server response was: 550 5.7.1 <test@test.com>... we do not relay
Your web server is set (as it should be) to not send email from domains it doesn't belong to. That's the "we don not relay" part of the message. ... -
jorgepino #2
Re: How to test seesion expired
did you try to use ParameterExists(url.module)?
jorgepino Guest
-
jiecoldfusion #3
Re: How to test seesion expired
ParameterExists doesn't work too!
jiecoldfusion Guest
-
OldCFer #4
Re: How to test seesion expired
Are you sure there's not something else happening? Try this:
<cfif IsDefined("Session.accounts_pk") >
<cfoutput>#Session.accounts_pk#</cfoutput>
</cfif>
And see if you still get an error. I've never had any problems with this.
OldCFer Guest
-
jiecoldfusion #5
Re: How to test seesion expired
I try this before
(<cfif IsDefined("Session.accounts_pk") >
<cfoutput>#Session.accounts_pk#</cfoutput>
</cfif>
)
but it always keep saying that accounts_pk is undefine.
right now I use this for temp solution
<CFPARAM name="Session.accounts_pk" DEFAULT="FALSE">
<cfif #Session.accounts_pk# IS "FALSE">
</cfif>
So far, it works.
do you have any idea
Thank you for the advice,
Jie
jiecoldfusion Guest
-
efecto747 #6
Re: How to test seesion expired
If you define your session variables inside Application.cfm using cfparam with
a default value then you can simply test the variable for that default value to
see if the session has expired.
ie. <cfparam name="session.UserID" default="0">
Assuming session.UserID normally contains a non-zero value, it will reset to
zero at any point where a page loads and the session has expired..
cheers.
efecto747 Guest
-
jiecoldfusion #7
Re: How to test seesion expired
Yes,
<cfparam name="session.UserID" default="0">
Assuming session.UserID normally contains a non-zero value, it will reset to
zero at any point where a page loads and the session has expired..
above works.
Thank you!
jiecoldfusion Guest



Reply With Quote

