I am trying to set a session to log attempts, I have a page
that displays an Identity question, I need to track how many times
the y try to answer it. Can somebody help me. Here is my code.
ok cool, let me ask you this when this page is called is that
when the session starts? and does the session.attempts add 1
everytime the page is called during this session?
>when this page is called is that when the session starts?
Maybe. It depends. "A new session is created as a result of a
request that is not in an existing session". So calling that page
might start a new session or it might not.
>and does the session.attempts add 1 everytime the page is
called during this session?
Yes. I'm not sure that's what you want. For counting retry
attempts I usually use a cfif to check whether the value should be
incremented.
<cfif ... some condition>
<cflock..>
...increment value here
</cflock>
</cfif>
Thanks for your help, I have a set of IdentityQuestion in my
db and I am displaying them randomly, and I am only allowing the
user 3 times to answer the question, I will use this
session.attempts to track it.