Webmastersite.net
Register Log In

integration with custom application

Comments on integration with custom application

gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Feb 24, 2006 - 9:16 AM:

I integrated the WSNLinks members table with my custom application and the only problem I have is the cookies. I would like it to be able to login through my own system and be already logged in into WSN. The same when logout. I created two cookies in my custom app. with user name and md5(password) in it and I included their names in the integration config file. The login works fine, but logout through my own system doesn't log members out of the WSNLinks. When I login under multiple accounts and logout through my system - it will show all those users as logged in at the same time in WSN. Also when integration is activated I can not login into the Admin Pannel.

I would appreciate any help.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 25, 2006 - 3:41 PM:

Your system must not be using the same cookie path.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Mar 01, 2006 - 9:55 AM:

1. OK.Looks like I can login with any user name into the WSN Links from my own login page. When I logout from my own system, the cookie is being deleted from my computer and I'm no longer logged in into WSN, but it still shows my name as currently logged in member (even though I'm not logged in anymore and can not access my profile).

2. Still can't login into Admin pannel.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Mar 01, 2006 - 10:37 AM:

Ok.I guess I have no clue what I'm doing. I can login into the WSN Admin if admingroup set to 1 in the integration cofig file. Doesn't work with 3 even though usergroup field is set to 3 for my admin user. But now every user can login into Admin panel.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 01, 2006 - 6:43 PM:

If the admingroup value doesn't match, you must have the wrong usergroup field.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Mar 02, 2006 - 9:30 AM:

Paul wrote:
If the admingroup value doesn't match, you must have the wrong usergroup field.


It actually created the usergroup field in my members table automatically.

I tried changing usergroup value in my members column just to see if it changes anything on members profiles. Nothing changes. All users are being automatically treated as Members... may be there is something in switches that needs to be turned on or in the general settings?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 03, 2006 - 12:17 AM:

It actually created the usergroup field in my members table automatically.

That means you didn't specify one at all in your integration file, which makes integration unusable. It is required.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Mar 03, 2006 - 5:49 AM:

..well, I didn't have one, so I thought if it creates this filed it should work. Anyways, trying to specify &newusergroup = 'usergroup'; didn't work either.. weird. I deleted the column and created a new one with name 'level' - then specified it in the config file and everything started working smiling face Thanks Paul!

As for logining out from my own application. I'm deleting wsnuser and wsnpass cookies, but even though I'm logged out and can not access things as logged user, my name is still appearing as currently logged. Should I clear something else too when login out?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 04, 2006 - 11:39 PM:

even though I'm logged out and can not access things as logged user, my name is still appearing as currently logged.

If the script knows your name, you're logged in, and there must be someting odd about your access that's preventing you from getting in despite being logged in. Unless of course you're simply looking at a browser cache.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
#10 - Quote - Permalink
Posted Mar 07, 2006 - 6:28 AM:

Paul,

when I logged in these are the cookies that active:
wsnuser
wsnpass
returnto
testcookie
PHPSESSID

When I logout from my own backend these are the cookies that are still active:
returnto
testcookie

I tried deleting them, but my name is still showing as logged in. Here is what I do to watch it: I open my backend in one window and wsnlinks in another one. I login from my backend and open members page in wsnlinks. WSNLinks shows members pannel at the top right corner. When I logout from my backend, I go an refresh the members page at the WSNLinks - the pannel disappears, but my name stays. I can login under different names into my own backend and logout - all those people will be on the WSNLinks members page and currently logged in, but kinda not from current PC.. weird. I feel like I'm not clearing something right.

Thanks for all your help man! I know you have better things to do smiling face
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Mar 09, 2006 - 5:54 AM:

If there are no cookies other than returnto and testcookie -- which have no user info in them as you can see -- you simply can't be logged in since the script had no possible way to guess who you are. The name must either be hard coded somehow or it's a browser cache.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.