Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Active users - user registration bug?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 May 2002 :  07:03:52  Show Profile  Send ruirib a Yahoo! Message
Nathan,

I just noticed a problem with new user registration in Active users mod. If I have a new user he is shown as a guest until he gets to the registration page. After he completes his registration active users shows the new registered user's name, but it doesn't remove the guest user that he started with. So in this case you get two users with the same IP, the new user with the correct name and a guest that will remain in the Registration page until it times out.

I don't think using the IP would be a good strategy for handling this, since there is the possibility of IP changes between page calls (with AOL I believe) or some users showing the same IP (due to proxy use, for example). Probably inserting an AutoNumber ID field in the ActiveUsers table and using that field in the register.asp page, between different calls to detect user name changes could be a viable option.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs

Nathan
Help Moderator

USA
7664 Posts

Posted - 28 May 2002 :  10:14:58  Show Profile  Visit Nathan's Homepage
Add the red part to register.asp
	if strAuthType = "db" then

select case chkUser(Request.Form("Name"), Request.Form("Password"))
case 1, 2, 3, 4
Call DoCookies("false")
strLoginStatus = 1
AUHandleLoging()
case else
strLoginStatus = 0
end select
end if


Nathan Bales
Snitz Exchange | Do's and Dont's

Edited by - Nathan on 28 May 2002 10:15:15
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07