starting unity web player with parametar

is this possible, i am trying to figure out the way how to start the web player with the username
from the database, i am not sure is it possible?

One way to pass username is by modifying html like so:

var url = “WebPlayer.unity3d?username=” + escape(“John”);
unityObject.embedUnity(“unityPlayer”, url, 600, 450);

And then you can access it from Unity using Application.absoluteURL.

can this be used somehow for standalone version?

Can you describe more what are you trying to achieve? Are you using some program to start standalone player?

i want to start the web player only if the user is registered on the site, i am also concerned about security. i dont want to type any user names
and passwords in unity itself, or if i do i want to make sure that it is protected. regarding standalone, i will be logging in through unity so we have to take safety precautions. if you have advice on this issue, it will be greatly appreciated.

I can see two options. Either user logs onto your website and only then gets access to Unity content or user gets immediate access to Unity content and logs on from Unity itself. I don’t see any inherent security risks in going with the latter option as long as you’re not sending data in plain text (i.e. use https and/or additional encryption).