Resolving username from userid?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

duke
Posts: 31
Joined: 16 Apr 2009, 11:23

Resolving username from userid?

Postby duke » 27 Apr 2009, 12:04

Can I do this on a server extension? I don't want to trust the client to send me his username as part of the sendXtMessage. I need to use the username in an SQL statement.
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 27 Apr 2009, 12:27

Sorry, your question is not very clear.
Anyways, each User object carries the user name with it ( getUserName() ), and you can trust it because the server does session management behind the scenes for you.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 18 guests