Send additional client information during login?


we want to store / retrieve additional information about the client in our Openfire instance.

My idea was to send a packet extension in the session establishment IQ:

<iq to=‘



Is this a valid approach in the first place from a pure XMPP perspective?

In Openfire I would then intercept the IQ and check if it contains a element and a element.

I’ve looked at the SessionEventDispatcher/SessionEventListener, but I only get the session there, not the packet.

I also found out, that the session is actually created when Openfire receives the element.

Do you have any ideas, which is the best approach?