Print Page | Close Window

9.04 Great member API features...but

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=24325
Printed Date: 06 April 2026 at 3:47pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: 9.04 Great member API features...but
Posted By: brianmisty
Subject: 9.04 Great member API features...but
Date Posted: 04 September 2007 at 6:33am
I jsut upgraded from 9.03 to 9.04 and the Member API changes are wonderful.  I had documented numerous changes that would have had to be made with every update, and 9.04 incoroporated all of those change in the Memebrship API with a few other features.  Thank you!
 
I continue to have issues with cookies not clearing properly when a user's group/role is changed.  What happens is that a user logs in and makes a few posts.  I later change his group to a moderator role (for instance).  Now, anytime he tries to log in again, he is unable to without first clicking the "clear WWF cookies" link.  Once the link is clicked, he is automatically logged in.  Otherwise, he could log in a hundred times, but when he hits the forum page, he will only see "Login". 
 
As I've said in a prior post, I can reduplicate this every time on any browser.  The forum seems to be chocking on the cookie.    I would appreciate any help with this.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 04 September 2007 at 9:48am
This will be looked into to try and replicate the problem.

-------------
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: WebWiz-Bruce
Date Posted: 04 September 2007 at 12:23pm
Have been trying to replicate this issue for several hours now and can not find the issue you mention.

Could you do a step by step guide on how to replicate this issue?


-------------
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: brianmisty
Date Posted: 09 September 2007 at 5:09am

I moved the forum from shared space at MaximumASP to a dedicated server at MaximumASP.  I was hoping this would solve the problem as the shared space was using an ISAPI filter for domain name redirection. I am now setup using standard host headers, and unforunately, my users are still reporting the same problems.

I am on a 9.04 installation with login disabled from the forum.
 
 
The issue goes like this... 
 
1. The User Logs in from organization's my website... the first time, they are asked to create a username.  Once they do this, their username, password, and email address are dropped into the membershipAPI session varibales, and the users are logged in... no problelms so far as users can post... logout, log back .. whatever.
 
2. The problem comes when I want to make a user a moderator, or perhaps change their username, or change them from newbie to the groupie role.  Once I do this, I get an email from the member that they can not log in, no matter how many times they try. They can only log in normally again once I explain that they need to click the clear cookies link.  Once they do this, they are strangely logged in automatically.
 
We are in a test phase right now with just 8-10 users, and virtually everyone has complained with this problem once I changed their group status.  If you still can't replicate this, I can provide you with a test membership to our organization.
 
 


Posted By: StarDust
Date Posted: 09 September 2007 at 5:58am
No one had ever pointed cookie problem in the way you did brianmisty. WWF had certain problem with cookies which -borg- would usually say, even microsoft has same issues sometimes.

As far as i could find out from v7 to v9 version, the reason is unknown to me and i didn't have similiar issue. But cookie problem is a very very rare issue for me. I never see it to happen very often.

Would you once again check, as you are using member API, i guess some other cookie could be messed up with WWF, Just to make sure?


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: brianmisty
Date Posted: 09 September 2007 at 6:09am
This is almost certainly a Membership API issue, and only seems to happen when then the WWF login forms are disabled and the use must log in externally.  This is possibly why it hasn't been noticed thus far.  It happens on FF2 and IE7, and the users have been from all over the US and one in Switzerland.   I have also replicated the issue from 2 entirley different server setups. 


Posted By: WebWiz-Bruce
Date Posted: 10 September 2007 at 9:13am
Can not find the issue you mention with the members group, as this is read in each time so is not cached.

However, you mention changing a users name. This will certainly course problems.

The API tracks users from your own system by their username. When a user comes from your system it takes the username, sees if that user is in the database, if they are logs them in as that user, if they are not it creates a new user under that username.

If you change the persons username you will break the API and it will no-longer work, and more likely you will have the issues that you mention.

Will look at completely disabling the changing of usernames in future versions when using the API to prevent such issues from happening.


-------------
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: brianmisty
Date Posted: 10 September 2007 at 4:18pm

Borg,

I would discourage you from disabling usernames changes with the Memebrshsip API.  The users only had to click the "remove cookies" link, and they were back posting again.  The problem isn't just from changing the usernames, although it was the cause on 2 occasions.  I receive a complaint EVERY TIME I have changed a users group, that they could not log in.
 
I have noticed a few other related issues.  When I am logged into the forum.. and I close the browser... then I go to another computer (or the same computer on a different browser), and log into the fourm under the same user name)... when I go back to the original browser, I am not logged in automatically, and further, I cannot log back into the forum until I click the delete cookies link. My users that user multiple computers, one at work and one at home, also have this problem.
 
We are close to opening forum membership up to 6000 members of our organization, but until we find a work around... there are just too many complaints and cookie problems to do so.  If you have a suggestion, I am certainly open to them. We had the problem on 9.03, as well, so I doubt a reinstall would do. I may try to disable the saving of the session in a cookie, and redirecting non-logged in users back to the login page. 
 
 


Posted By: WebWiz-Bruce
Date Posted: 10 September 2007 at 4:24pm
The problems that you mention all sound like they are related to changing the username.

If you change the username of a member in the forum then the forum doesn't see then as a user anymore even though their session is still running. Clearing the cookies deletes the session so that user can be picked up again from the API.

If this is also coursing issues when you just update the members user group then check that the forum and your own site are both running under the same page encoding. If not updating the user group from the admin are could also be updating the username and storing it under a different page encoding, thus the forum can't match up the user again coursing the same problem as just changing the username.

Disabling being able to update the username when the API is enabled should prevent both these problems.


-------------
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: WebWiz-Bruce
Date Posted: 10 September 2007 at 4:28pm
In the file admin_register.asp remove the follwoing line around 349:-

.Fields("Username") = strUsername

This will prevent you from updating the username from the admin area, or coursing other issues by also inserting new members from the admin area.

You should also not use the import tools when using the member API.

To prevent issues in the member API, in the next version the add a new member, updating a members username, and using the import tool, will all be disabled when the Member API is enabled.


-------------
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



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