When the user logs in I run the following code...
I first check to see if the user exisits. If so...
<CFIF CheckUser.RecordCount GREATER THAN 0>
<CFSET Session.LoggedIn = True>
<CFELSE>
<CFSET Session.LoggedIn = False>
</cfif>
Then I set some session variables
<CFIF Session.LoggedIn EQ True>
<CFSET Session.AuthUserID = Trim(CheckUser.UserID)>
<CFSET Session.AuthMemberID = Trim(CheckUser.member_id)>
<CFSET Session.AuthAccountTypeSeller = Trim(CheckUser.accounttypeseller)>
<CFSET Session.AuthAccountTypeBidder = Trim(CheckUser.accounttypeBidder)>
<SCRIPT LANGUAGE="_javascript_">
self.location ='https://foo';
</SCRIPT>
<CFELSE>
return them to the home page
</cfif>
This works fine. The problem I am having is that when they press logout. It does not really logo them out. Here is my logout code...
<CFSET StructDelete(Session, "LoggedIn")>
<CFSET StructDelete(Session, "AuthUserID")>
<CFSET StructDelete(Session, "MemberID")>
<CFSET StructDelete(Session, "AuthAccountTypeBidder")>
<CFSET StructDelete(Session, "AuthAccountTypeSeller")>
<CFIF isDefined("session.AuthUserID")>
Log Off Failed....
<CFELSE>
Logging Off.....
<cflocation url="" addtoken="no">
</cfif>
It does send them back to the home page, but if I log in with a different ID, I am still accessing the site with the account I just logged out with.
HELP...I have tried everything I could think of and it is still not logging them out.
I have an application file running with this...
<cfset hrsBeforeTimeout = 2>
<cfapplication name="Inside" clientmanagement="Yes" sessionmanagement="Yes" sessiontimeout="Yes" applicationtimeout="Yes">
<CFPARAM name="session.LoggedIn" DEFAULT="FALSE">
<cfparam name="BidPlaced" default="0">
Not sure if that will make a difference.
Thanks
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

