Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
session start and session end event
Avatar
softyboy #1
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
Subject: Session Start and Session End Event
hi,
 
 i m new for this library.

 How to implement session start and session end event.
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
please study our example projects, especially the MiniClient sample.
Software Developer
AG-Software
Avatar
softyboy #3
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
thanks for reply

i have seen miniclient sample but there is no any event fire after closing the chat windows.  

pls tell me, which event will be raised on session start and session end.

one more thing how can start the session and end the session.
This post was edited on 2006-09-12, 12:15 by softyboy.
Avatar
Jabberer #4
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
no special xmpp events are raised if you close a chat window in the MiniClient.

In XMPP a session starts with the Login to the server and ends with the LogOut.
The event which is raised on session end is OnClose from XmppClientConnection.
Software Developer
AG-Software
Avatar
softyboy #5
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
thanks .

Actually i m working with lcs server and sametime server, they both server are provide this feature. so that's why i m try.

i think it is big feature missing in your library becouse without this event (session start and session end) we can not logged conversation in particular session.

if you have any idea about that for implement in other way pls tell me.
Avatar
Alex #6
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hello,

of course you can. XMPP is different than other systems like lcs or sametime.
The requested feature is there, you only have to get familiar with XMPP and our SDK.
If you want to log on the client side you can use the OnMessage of XmppClientConnection for logging. You can also use the OnClose event of System.Windows.Forms to save the whole conversation.
Also most XMPP servers support server side logging.

Alex
Alexander Gnauck
AG-Software
Avatar
softyboy #7
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
Hello Alex,

i know,  it's possible on my side, when i close the window then we can forcely logged out, but how we know that other side of user that when they closed chat window and forcely logged out that user.

i mean to say we can not tace the timing- it's mean we can trace out session start time but not session end time, it's very important for organization logged the timing.

Parwej Ahamad
India.
This post was edited on 2006-09-12, 14:42 by softyboy.
Avatar
Alex #8
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i really don't understad what you mean by logged out, and what a session is for you.
As i said before in XMPP a session lasts from your login to your logoff. A session has nothing to do with conversations. In XMPP you get no notification if somebody is closing a chat window. There are existing extensions for that.
If you need something like that then you could use JEP-0085 Chat State Notifications.
If one of your contacts closes the session (logg off) you get a presence of type unavailable.

Alex
Alexander Gnauck
AG-Software
Avatar
softyboy #9
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
Thanks Alex,

Actually in LCS server and SameTime provide this facility like,
when chat conversation start with two user, then server send a notification session start ( it's dosn't matter when you loged in) it's mean chat window open and start the conversation, when any user close the chat window then send the notification (session id,user)  session closed ( it's dosn't matter log out ). that kind things like.

Parwej Ahamad
India.
Avatar
Jabberer #10
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
It is no problem to implement something like that with agsXMPP.
e.g. with the JEP Alex mentioned. You can take the thread element as your session id.
Software Developer
AG-Software
Avatar
softyboy #11
Member since Sep 2006 · 31 posts · Location: india
Group memberships: Members
Show profile · Link to this post
thanks,

I will try and touch with u back.

thanks

Parwej Ahamad
india.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS