Welcome to the COE Discussion Forums! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


COE Community News

Follow COE on

COE DISCUSSION FORUM
Retrieve all active sessions?
Last Post 02 Sep 2008 01:16 PM by Vengal. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
DAFTGLINT
New Member
New Member
Posts:60

--
14 Jul 2008 05:40 PM  

Hello I try to retrieve from VB all active sessions of Smarteam and always return me 1 the mine :'( I´d like to one search with all active sessions and manage them.

Anyone has tried it?

Best Regards.

Remarks

Creating a Session in Server Mode

To create a SmSession object in Server Mode (ServerMode = True), use the Visual Basic method CreateObject instead of CreateSession, as in the following example:

'

Dim SmEngine As SmApplic.SmFreeThreadedEngine
Dim SmSession As SmApplic.SmSession

Set SmEngine = CreateObject("SmApplic.SmFreeThreadedEngine"
SmEngine.Init "SmTeam32"
Set SmSession = CreateObject("SmApplic.SmSession"
SmSession.Init SmEngine, "MySession", "Smteam32"
SmSession.OpenDatabaseConnection "SmDemo", "system", False
SmSession.UserLogin "joe", ""
''
WOLFGRRL
New Member
New Member
Posts:24

--
16 Jul 2008 06:42 PM  
As far as I know, you can only manage sessions via LUM, and that only allows you to see the sessions, not manage them.
PIANNACCHIONE
New Member
New Member
Posts:24
Avatar

--
22 Jul 2008 06:38 PM  
Use the Sessions property on the ISmEnginer interface. You can also use the SessionsCount to retrieve the number of sessions. You're on your own to try and manager them though.
DAFTGLINT
New Member
New Member
Posts:60

--
23 Jul 2008 08:52 AM  
Yes but If you try it, doesn´t work i tested in one server (mine) connecting as servermode=true
and I only retrieve one session in sessioncount. instead of the 3 clients that are connected and getting licenses.

Vengal
New Member
New Member
Posts:1

--
02 Sep 2008 01:16 PM  

got the same problem...can't you even just get somekind of a list of active users?

I can only see one user (me) too... =\

You are not authorized to post a reply.

Active Forums 4.1