我在 unity3d 和我的网站页面中有注册和登录页面,当我将我的注册或登录数据从 unity3d 发布到我的网站(magento cms)时,发送给我自己的错误“必要的数据倒带是不可能的”,然后看到我的请求在 HttpAnalyzer 应用程序中,我发现 unity3d 无法接受获取 cookie 字符串。登录或注册用户后如何从网页获取cookie?我的unity3d代码:
var form = new WWWForm();
form.AddField( "SN", SystemInfo.deviceUniqueIdentifier.ToString());
form.AddField( "UserName ", UserName );
form.AddField( "year",Year );
form.AddField( "month", Month );
form.AddField( "day", Day );
form.AddField( "dob",Year+"/"+Month+"/"+Day );
form.AddField( "gender", Gender );
form.AddField( "password", Pass );
// Create a download object
var download = new WWW(URL, form);
// Wait until the download is done
yield download;
// show the Results
Debug.Log(download.text);
if(download.error != null)
{
Debug.Log("Err :"+download.error);
Flag = "1";
}