Jump to content


member->info() aflter login (for SOAP webservice)


  • You cannot reply to this topic
13 replies to this topic

#1 AquaPassion

    Rookie

  • Active Member
  • 3 posts
  • Gender:Male

Posted 10 October 2011 - 06:42 PM

Hello,
I have to add a SOAP webservice to my forums (ipb 3.2.2 )
For authentification i use ipbwi but with soap i have no reload after login
I do :
$ipbwi->member->login()
->ok
$ipbwi->member->isLoggedIn()
-> return true , Ok

but
$ipbwi->member->info()
return an empty value
I can't get member_id and member datas

Any ideas ?

Thanks

#2 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 11 October 2011 - 04:58 PM

I recommend reinitializing the IPBWI class after login for this issue

#3 AquaPassion

    Rookie

  • Active Member
  • 3 posts
  • Gender:Male

Posted 11 October 2011 - 09:04 PM

thanks ?
when you say

Quote

reinitializing the IPBWI class
is it
unset($ipbwi);
$ipbwi = new ipbwi();
?

This have no more effect for me ...

but it's good if i do a:

Quote

$ipbwi->session = new publicSessions();
is it a good way ?

Edited by AquaPassion, 11 October 2011 - 09:05 PM.


#4 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 12 October 2011 - 03:41 PM

yeah, that's fine! This just rewrites session data. I'll check wether this is possible to be integrated per default in IPBWI for Login method.

#5 AquaPassion

    Rookie

  • Active Member
  • 3 posts
  • Gender:Male

Posted 12 October 2011 - 07:21 PM

Ok good!
Thank you very much for this great tool !

#6 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 20 December 2011 - 04:04 PM

Hi,

I've got the same problem.

I tested with : $ipbwi->session = new publicSessions();
but that has no effect for me...

$ipbwi->member->info() always return empty values.

Have you got tips ?

Thank you for your great API.

#7 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 20 December 2011 - 05:56 PM

I'll search for a solution for this issue asap, it's on my todo now.

#8 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 21 December 2011 - 02:26 PM

Thank you !

#9 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 18 January 2012 - 03:15 PM

Hi !

Any news ?

Thank you

#10 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 02 February 2012 - 03:58 AM

possibly fixed in next IPBWI release. (3.1.3)

#11 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 06 February 2012 - 02:26 PM

Thanks !

#12 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 17 February 2012 - 09:25 AM

Hi !

Seems to be better with latest release (3.1.3) but I've got another problem.

I want to connect another user, make an action (post in a topic) then fallback to previous user.
Actually my script do that but current user still logged in with the temp user (bot) instead of his account...

Any idea ?

#13 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 17 February 2012 - 02:21 PM

so your script is actually structured like this?

SOAP REQUEST:
-> UserA already logged in
-> UserA logging out
-> UserB logging in
-> UserB action
-> UserB logging out
-> UserA logging in

#14 RpGmAx

    Rookie

  • Active Member
  • 6 posts

Posted 17 February 2012 - 02:43 PM

Like that :

-> UserA already logged in
-> UserB logging in (in same or another ipbwi object)
-> UserB action
---
-> UserB logging out
=> UserA not connected (visitor)
OR
-> UserB not logging out
=> UserB still connected (UserA uses UserB credentials)


I tried to save UserA ipbwi array then inject it in the new session (after UserB actions)... Same :/


I want that :

-> UserA already logged in
-> UserB login
-> UserB action
-> UserB logout
-> UserA still logged in

Edited by RpGmAx, 17 February 2012 - 09:15 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users