Print Page | Close Window

Member API Doesn't Logoff Forum Account

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30988
Printed Date: 30 March 2026 at 3:53am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Member API Doesn't Logoff Forum Account
Posted By: GhOs+
Subject: Member API Doesn't Logoff Forum Account
Date Posted: 12 April 2014 at 6:06pm
I am using a membership API (blnMemberAPI = True in functions_member_API.asp). I am experiencing the following:
 
Forum:
Logon - ok, logon in functions_member_API works in parallel with both membership and forumLogoff - Logoff - ok, logoff in functions_member_API works in parallel with both membership and forum
 
Memberpages:
Logon - ok, transfers session to forum and both are logged in
Logoff - only logs off membership pages, not forum
 
How can I get the member page to logoff the forum account also so the user won't show active? Can I somehow rig log_off_user.asp page? My concern is a user will think they logged off from the system by clicking on Logoff in the member pages, but the forum account is still logged in! Probably something very simple I overlooked...

 
Thanks in advance!!!



Replies:
Posted By: GhOs+
Date Posted: 12 April 2014 at 6:17pm
I have the following happening, but it's not good enough apparently -
 
   Session.Contents.Remove("USER")
   Session.Contents.Remove("PASSWORD")
   Session.Contents.Remove("EMAIL")
 
Do I need to somehow identify the getSessionItem("KEY") or lngLoggedInUserID?


Posted By: GhOs+
Date Posted: 15 April 2014 at 5:39am
Ok, it looks like this works - please yell "STOP" if I'm doing something that doesn't look safe -
 

First I created another copy of log_off_user.asp (to not interfere with the original's function) and changed the following condition:

If lngLoggedInUserID > 0 AND Request.QueryString("XID") = getSessionItem("KEY") Then

to

If getSessionItem("KEY") <> "" Then
Lastly, I redirect to this new log_off_user.asp page upon logout of my other registration app. Once this page is loaded, it appears to automatically remove the existing forum session.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net