Last post Jan 10, 2007 03:45 PM by KadarOne
Jan 05, 2007 05:44 PM|KadarOne|LINK
How can I make my mobile application automatically create a new session if the session being requested by the mobile browser has expired.
The problem that I am having is whenever I open my mobile bbrowser after I have been offline for a while and if my mobile application was the last page opened in the browser when I closed the mobile browser I get the following error message.
The page requires session state that is no longer available. Either the session has expired, the client didn not send a valid session or the history size is to small. Try increasing the size of session expiry limit.
Jan 10, 2007 01:29 AM|Siddero|LINK
In your mobilepage try handling the OnVeiwStateExpire method. Something like this...
protected override void OnViewStateExpire(EventArgs e)
//Handle the request and go back to, say, the login page
Further when your browser makes a new request without a session-key you'd automatically be assigned a new one.
Hope this helps.
Jan 10, 2007 03:45 PM|KadarOne|LINK