I have a provider hosted app in SharePoint Online. The problem I have is sometimes on postback the TokenHelper Class method GetContextTokenFromRequest is returning Context Token as NULL
ContextToken = TokenHelper.GetContextTokenFromRequest(Page.Request);