I have a unity web player game that runs on server . I need to obtain the url of the web page where the unity web player is embedded
public static string fullUrl;
void Start() {
Application.ExternalEval("var unity = unityObject.getObjectById(\"Unity\");unity.SendMessage(\"" + name + "\", \"ReceiveURL\", document.URL);");
}
public void ReceiveURL(string url) {
// this will include the full URL, including url parameters etc.
fullUrl = url;
}
But this script returns path where the game is stored and not the current url of the web page
I tried Application.datapath too.
How to obtain this url . From this url i need to get the session id
Thanks for help in advance!!!

@Graham Dunnett
Application.absoluteurl returns the file path where the game is hosted. I want the url of the page where the unity web player game is played (To obtain session id)
– vikhi