Print Page | Close Window

member api login issues

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=23805
Printed Date: 07 April 2026 at 7:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: member api login issues
Posted By: johnnyjcorp
Subject: member api login issues
Date Posted: 16 July 2007 at 9:35pm
I use the member_API to transfer my sites session level username to the forums.
 
--- in functions_member_API.asp ---
' if the user is logged into the site, set the session variables for the forum member api
 
if len(session("username")) > 0 then
  Session("USER") = session("username")
  Session("PASSWORD") = session("user_id")
  Session("EMAIL") = session("user_email_addr")
end if
 
--- end functions_member_API.asp ---
 
But I occassionally get emails from my users that for some reason they do not have permission to post.  They are definitely logged into the site with the login session variables (as I have seen in the screenshots that show's their site session status), but I believe that, on occassion, they get logged off the forums even though they are still logged into the site.
 
Does anyone else have any issues like this, where the user gets logged off the forums, even though the site session is still active?
 
I was trying to figure out how all of the login code worked for the forums, and at which stages it was called, but it's not so straight forward for me to understand.
 
Is there a place that I could add some code that checks to see if the user is logged in to the site (by checking my site session variables) but not logged into the forum, and if so then force the forum login code to happen?
 
For instance:
 
' if the user is logged onto the site, but not logged into the forums, force the forum to log them in again.
if len(session("username")) > 0 and len(strLoggedInUsername) = 0 then
  existingMemberAPI()
end if
 
Would that work?  If so, where is the best place that I could put it so that it would get called on every page request?
 
Thanks!
 
JohnnyJ
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 16 July 2007 at 10:04pm
Wait for version 9 to be released in a few weeks as it has improved the login tracking which should hopefully prevent problems like this.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: johnnyjcorp
Date Posted: 16 July 2007 at 10:31pm
Excellent.  Thanks Borg!



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