Using .Net Connector to retrieve user id from MYSAPSSO2
I am trying to get the user id from the MYSAPSSO2 cookie from my .net application that is running through EP6.
So far I have the following code most of it taken from the artical "Enabling Single Sign-On for ASP.NET Applications in Enterprise Portal 6:
SAP.Connector.Destination dest = new SAP.Connector.Destination();
dest.MySAP_SSO2 = HttpUtility.UrlDecode(this.Request.Cookies["MYSAPSSO2"].Value);
TheCookie = dest.MySAP_SSO2.ToString();
My question is, what code do I use from here to get the user id from the jumbled string that is returned?