Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Member API Doesn't Logoff Forum Account
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Member API Doesn't Logoff Forum Account

 Post Reply Post Reply
Author
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Topic: Member API Doesn't Logoff Forum Account
    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!!!
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.