I want to know what kind of device my client is using to access the server. I found that the latest version of SFS2X is logging this info on smartfox.log:
14 Apr 2013 | 14:04:09,616 | INFO | pool-1-thread-4 | v2.api.SFSApi | | User login: { Zone: MyZone}, ( User Name: TestUser, Id: 0, Priv: 0, Sess: 127.0.0.1:50287 ) , Type: FlashPlayer:PlugIn:WIN 11,7,700,179
I tried extracting it using user.getSession() but I couldn't find that information.
Is there a way how to do this?
How to get the client type from the Server Side?
How to get the client type from the Server Side?
"Dream it, I'll code it..."
Lead Developer
Optimal Solution Pte. Ltd.
Lead Developer
Optimal Solution Pte. Ltd.
Re: How to get the client type from the Server Side?
Hi,
you will need to use this code to obtain the client type string:
cheers
you will need to use this code to obtain the client type string:
Code: Select all
String theClient = user.getSession().getSystemProperty(SFSConstants.SESSION_CLIENT_TYPE);
cheers
Re: How to get the client type from the Server Side?
Lapo wrote:Hi,
you will need to use this code to obtain the client type string:Code: Select all
String theClient = user.getSession().getSystemProperty(SFSConstants.SESSION_CLIENT_TYPE);
cheers
Works like a charm!
Thanks Lapo.
"Dream it, I'll code it..."
Lead Developer
Optimal Solution Pte. Ltd.
Lead Developer
Optimal Solution Pte. Ltd.
Who is online
Users browsing this forum: No registered users and 111 guests