Well then look at it this way, you are not passing the tokens with the url.
You have clients that do not have cookies enabled, and you have switched it
off on the application.cfm.
It is not timing out, its being reset with new values for each page request
its that simple.
On 11/18/06, Mullai Subbiah <[EMAIL PROTECTED]> wrote:
>
> >What makes you say that it is timming out?
>
> I think because in the application.log there is a message that one of the
> session variables "Element userid is undefined in session". This variable is
> set in the page after the user's login/password is accepted.
>
> This is the code which processes the user login/password and sets all the
> SESSION variables.
>
> <CFQUERY NAME="CheckUser" DATASOURCE="#pdmin_dsn#">
> SELECT user_name as UserID, Password, user_type
> FROM user_dat
> WHERE user_name = '#Form.User_name#'
> </CFQUERY>
>
> <CFQUERY NAME="getnewstype" DATASOURCE="#name_dsn#">
> SELECT newsName
> FROM newsType
> WHERE newsTypeID = #Form.newstype#
> </CFQUERY>
>
> <CFLOCK scope="SESSION" type="EXCLUSIVE" timeout="60" throwOnTimeout="No">
> <CFIF (#SESSION.LOGGEDIN# EQ "FALSE")>
> <CFIF CHECKUSER.RECORDCOUNT GREATER THAN 0>
> <CFIF CHECKUSER.PASSWORD IS FORM.PASSWORD>
> <CFSET SESSION.LOGGEDIN = TRUE>
> <CFSET SESSION.USERID = CHECKUSER.USERID>
> <CFSET SESSION.USERTYPE = CHECKUSER.USER_TYPE>
> <CFSET SESSION.NEWSTYPEID = Form.newstype>
> <CFSET SESSION.NEWSNAME = getnewstype.newsName>
> <CFCOOKIE NAME="LoggedIn" VALUE =
> "#CHECKUSER.UserID#">
> <CFCOOKIE NAME="CFID" VALUE="#SESSION.CFID#">
> <CFCOOKIE NAME="CFTOKEN" VALUE="#SESSION.CFTOKEN#">
> <cfoutput><cflocation url="news.cfm
> ?current_newsTypeID=#form.newsType#"></cfoutput>
> <CFELSE>
> <CFOUTPUT>
> <SCRIPT>
> alert("Sorry, Invalid password. Try
> again.");
> self.location=
> "#base_path#/admin/main/index.cfm";
> </SCRIPT>
> </CFOUTPUT>
> </CFIF>
> <CFELSE>
> <CFOUTPUT>
> <SCRIPT>
> alert("User #FORM.USER_name# was not found
> in our database.");
> self.location="#base_path#/admin/main/index.cfm";
> </SCRIPT>
> </CFOUTPUT>
> </CFIF>
> <CFELSE>
> <cfoutput>
> <SCRIPT LANGUAGE="JavaScript">
> location.href('news.cfm?current_newsTypeID=#form.newsType#');
> </SCRIPT>
> </cfoutput>
> </CFIF>
> </CFLOCK>
>
> Thanks.
>
> Mullai
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260986
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4