Session key invalid or no longer valid, Help Required

Dec 4, 2008 at 6:31 PM
Hi Guys,

I have created a face book application by using the stevetre fethen  Facebook Application Starter Kit.Normal the application work fine but when i logout face book user and try to re login it with my friends face book account it say session key invalid or no longer valid, I have search a lot on google but my problem is not resolved. I have also seen a couple of post regarding this issue even on codeplex but the problem is not solved, some people posted solution like replace  "protected void Page_Load(object sender, EventArgs e)" to  "new protected void Page_Load(object sender, EventArgs e)" or renew the session at the load even like this

Session["SESSION_SESSION_KEY"] = null;
Session["SESSION_USER_ID"] = null;

But the problem is not solved, My code is very simply, just fetch the login user and display the welcome messages.

Here is code for my page load event
        new protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    Session["SESSION_SESSION_KEY"] = null;
                    Session["SESSION_USER_ID"] = null;
                    facebook.Schema.user userinfo = Master.API.users.getInfo(Master.API.uid);
                    lblWelcomemsg.Text = "Hi, " + userinfo.first_name;
                    imgUserPicture.ImageUrl = userinfo.pic;
                                     
                }
               
            }
            catch (Exception ex)
            {
                lblMsg.Text = ex.Message;
            }

        }


Is there anyone who could help me out in solving this issue.
Waiting your quick and positive response.
Feb 4, 2009 at 5:47 AM
hi guys,

          Check solution on http://www.codeplex.com/FacebookToolkit/Thread/View.aspx?ThreadId=42237.
Thanks