Redirecting in the mobile framework
I'm using custom authentication and when redirecting I was handling it like
any other non-mobile web app I've done before. I was using
Response.Redirect(). Now I've noticed that there is a
MobilePage.RedirectToMobilePage() method. Should I be using this instead of
I was receiving the following error in my app:
"The page requires session state that is no longer available. Either the
session has expired, the client did not send a valid session cookie, or the
session state history size is too small. Try increasing the history size or
session expiry limit."
Stack trace: at
System.Web.UI.MobileControls.MobilePage.OnViewStat eExpire(EventArgs e)
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I'm checking the Session state in the OnInit event so they should be
redirected before this point. Also I read in the documentation for
Response.Redirect() that in cookieless forms using the ~/ for the application
root can cause new Sessions to be created which I was also doing. Do you
think either or both of these could be the cause of my problem?
|All times are GMT. The time now is 02:32 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.