Session data sometimes empty

Dec 9, 2009 at 11:09 PM


I use Master.Api.Session to get the session data in my pages to send this to a WCF service which then validates the user, like so:

  public string InitParams
                string p =

                return p;

and pass it in the aspx page in the initparams to the silverlight host like this:

<param name="initparams" value="<%=InitParams %>"/>


However, for some users this data is always empty but for other users it works.

Any idea what the problem might be? 




Dec 9, 2009 at 11:58 PM

Never mind, found the problem.


Dec 11, 2009 at 6:25 PM


I am new in Facebook SDK and want to develop Silverlight canvas application.

Are you using FBML or IFrame canvas?

Yor code is all what is needed to pass session to silverlight? 

Could you please provide also silverlight application code?




Dec 11, 2009 at 6:50 PM


There are a number of ways to do this, the code you see there is all I use in my application and it works fine.

How you implement it in your silverlight app depends on what you want to do, what's important is that you pass the necessary information to silverlight using the initparams.