Hi all,
Im using Client management but for some reason, the client variables does not seem to be deleted although the function
#getvariableList()# returns "Yes" ??
Basically, once a log out, I am pausing and looking to make sure the variables are being cleared. Once they have, I try to output the Variables (CFID and CFTOKEN) to check fr sanity that they have been.
This is causing me major aggro because when I try to log in as the same user, a New CFID is being assignend to that same user (But the same user should have the same CFID Surely??). I am storing the CFID and CFTOKEN values in a datastore.
Please help.. :-(
Heres the code for my logout page :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Logout User</title>
</head>
<body>
<CFIF ISDEFINED ('Client.UserName')>
<CFOUTPUT>No of Client Variables before cleared = #GETCLIENTVARIABLESLIST()#</CFOUTPUT><BR><BR>
<CFSET DeletedUserName=DeleteClientVariable("Client.UserName"
>
User Name Variable Delete Confirmed? <CFOUTPUT>#DeletedUserName#</cfoutput><BR>
<CFSET DeletedPassword=DeleteClientVariable("Client.Password"
>
User Name Variable Delete Confirmed? <CFOUTPUT>#DeletedPassword#</cfoutput><BR>
<!--- <CFLOCATION URL="Index.cfm" Addtoken="NO"> --->
<CFCOOKIE NAME="cfid" EXPIRES="now">
<CFCOOKIE NAME="cftoken" EXPIRES="now">
<CFCOOKIE NAME="cfGlobals" EXPIRES="now"><BR>
<A href="Index.cfm?cfid=#cfid#&cftoken=#cftoken#"> Index </A><BR>
<CFELSE>
<CFOUTPUT>
#Client.UserName# was not passed to be deleted!
</CFOUTPUT>
</CFIF>
<CFOUTPUT>
<CFIF ISDEFINED ('Client.UserName')>
No of Client Variables after using delete client variable function =#GETCLIENTVARIABLESLIST()#
<BR>
#DeletedUserName#<BR>
#Deletedpassword#<BR>
</cfif>
</CFOUTPUT>
<BR>
<BR>
</body>
</html>
Im using Client management but for some reason, the client variables does not seem to be deleted although the function
#getvariableList()# returns "Yes" ??
Basically, once a log out, I am pausing and looking to make sure the variables are being cleared. Once they have, I try to output the Variables (CFID and CFTOKEN) to check fr sanity that they have been.
This is causing me major aggro because when I try to log in as the same user, a New CFID is being assignend to that same user (But the same user should have the same CFID Surely??). I am storing the CFID and CFTOKEN values in a datastore.
Please help.. :-(
Heres the code for my logout page :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Logout User</title>
</head>
<body>
<CFIF ISDEFINED ('Client.UserName')>
<CFOUTPUT>No of Client Variables before cleared = #GETCLIENTVARIABLESLIST()#</CFOUTPUT><BR><BR>
<CFSET DeletedUserName=DeleteClientVariable("Client.UserName"
User Name Variable Delete Confirmed? <CFOUTPUT>#DeletedUserName#</cfoutput><BR>
<CFSET DeletedPassword=DeleteClientVariable("Client.Password"
User Name Variable Delete Confirmed? <CFOUTPUT>#DeletedPassword#</cfoutput><BR>
<!--- <CFLOCATION URL="Index.cfm" Addtoken="NO"> --->
<CFCOOKIE NAME="cfid" EXPIRES="now">
<CFCOOKIE NAME="cftoken" EXPIRES="now">
<CFCOOKIE NAME="cfGlobals" EXPIRES="now"><BR>
<A href="Index.cfm?cfid=#cfid#&cftoken=#cftoken#"> Index </A><BR>
<CFELSE>
<CFOUTPUT>
#Client.UserName# was not passed to be deleted!
</CFOUTPUT>
</CFIF>
<CFOUTPUT>
<CFIF ISDEFINED ('Client.UserName')>
No of Client Variables after using delete client variable function =#GETCLIENTVARIABLESLIST()#
<BR>
#DeletedUserName#<BR>
#Deletedpassword#<BR>
</cfif>
</CFOUTPUT>
<BR>
<BR>
</body>
</html>