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.
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).
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 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?
..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 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?
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.
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
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.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on integration with custom application
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Your system must not be using the same cookie path.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
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.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If the admingroup value doesn't match, you must have the wrong usergroup field.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
..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 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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Oct 30, 2003
Total Topics: 54
Total Comments: 197
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.