Imagine you have a Flex Applicatin using WebORB Authentication. When the first Remote Call is done you supply the Remote Object with credentials. The server authenticates and from then on you don’t need to supply credentials anymore. The server side session will remembler who you are.

But if for some reason your server side session is ended (to to session timeout, applicatin pool recycling, …) the next Remote Call will get a Weborb Security Error.

We have solved this by catching this error in the OnFault event from the responder and retrying the remote call again with the credentials. However, this wasn’t as easy as we thought. Apparently the client side code remebers that it’s been authenticated and will not re-authenticate automatically (because the client doens’t know the session has ended). First we tried to call logout() on the remote object but that didn’t work (we got an error saying that logging out and setting the credentials couldn’t be done simultaenously). We then tried disconnect() and this worked like a charm. After the disconnect() on the remote object we resetted the credentials. If we then called a server side function, WebORB would re-authenticate again. Without the disconnect() WebORB would’nt re-authenticate again (apparently the remote object holds some flags which tell WebORB to authenticate or not). We do need to go and find out the difference between the logout() and the disconnect().

I will definetily come back to this because it isn’t a hundred procent clear to me.

Ciao, Lieven Cardoen aka Johlero

pixel WebORB Authentication Issue
No TweetBacks yet. (Be the first to Tweet this post)