Logout Api not changing the online_status of the user
Hi All ,
I am trying to logout using API , here is the steps
1. First I get the admin session key by executing ,
http://community-name/restapi/vc/authentication/sessions/login?user.login={username}&user.password={password}
Result : sessionkey
2. This will give me the session key , which i am using to login another user as below ,
http://community-name/restapi/vc/authentication/sessions/login?restapi.session_key={sessionkey}&user.login={username}
Result : This will change the online_status = "online"
( select * from users where id = '12' ) do this in API Browser.
3. After that i am logging out using following api ,
http://community-name/restapi/vc/authentication/sessions/logout?restapi.session_key={sessionkey}&user.login={username}
Result : Success
But when i check the online_status its still online .
Can you please guide me how i can kill the session / or the online_status will only change after 30 minuets as the default session key is preserved for 30 min .
Regards
Irfan