Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - member api login issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

member api login issues

 Post Reply Post Reply
Author
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post Topic: member api login issues
    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
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2007 at 10:31pm
Excellent.  Thanks Borg!
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.