I have a fairly conventional Dot Net 4.0 (C#) web application that passes around a few session variables between pages. So far, so good.
Now someone ran the app on their iPhone and got a minor error. The only way this error could occur, so far as I can tell is if a particular session variable were lost in the transition between one page and the next.
Is there any factor specific to iPhones and other mobile devices that could account for this? All conventional use on PCs has been without incident.
(This app wasn't even designed for mobile devices, although that may yet happen.)
I doubt it, only because session is maintained on the server not the client. So it shouldn't matter where you're accessing your page from. I would think it's something else.
Actually the problem may be one of communication. My app was set to a timeout of 300 minutes. No one told me the company web server was set to 30 minutes.
bchernick
Member
110 Points
263 Posts
Potential problem with web app session variables and iPhones (?)
Feb 11, 2013 01:56 PM|LINK
I have a fairly conventional Dot Net 4.0 (C#) web application that passes around a few session variables between pages. So far, so good.
Now someone ran the app on their iPhone and got a minor error. The only way this error could occur, so far as I can tell is if a particular session variable were lost in the transition between one page and the next.
Is there any factor specific to iPhones and other mobile devices that could account for this? All conventional use on PCs has been without incident.
(This app wasn't even designed for mobile devices, although that may yet happen.)
AidyF
Star
9184 Points
1570 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 11, 2013 02:03 PM|LINK
If you are losing the Session then the mobile device is rejecting your site's cookies.
MetalAsp.Net
All-Star
112032 Points
18231 Posts
Moderator
Re: Potential problem with web app session variables and iPhones (?)
Feb 11, 2013 02:04 PM|LINK
I doubt it, only because session is maintained on the server not the client. So it shouldn't matter where you're accessing your page from. I would think it's something else.
BrockAllen
All-Star
27434 Points
4891 Posts
MVP
Re: Potential problem with web app session variables and iPhones (?)
Feb 11, 2013 03:20 PM|LINK
Browsers have limits on the amount of cookie data per-domain:
http://myownplayground.atspace.com/cookietest.html
Is it possible that your domain is creating more than 4K of cookie data?
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
bchernick
Member
110 Points
263 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 11, 2013 05:19 PM|LINK
Actually there's only one cookie in my system and its value is a string that normally will not be more than 20 or so characters.
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 12, 2013 03:43 PM|LINK
Hi,
Is it reproducable every time? Moreover, did you tried on other devices?
Roopesh Reddy C
Roopesh's Space
bchernick
Member
110 Points
263 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 13, 2013 05:24 PM|LINK
Actually the problem may be one of communication. My app was set to a timeout of 300 minutes. No one told me the company web server was set to 30 minutes.
The testing continues...
roopeshreddy
All-Star
20119 Points
3320 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 19, 2013 06:44 AM|LINK
Hi,
Any Updates on this issue? Are you still facing it?
Roopesh Reddy C
Roopesh's Space
bchernick
Member
110 Points
263 Posts
Re: Potential problem with web app session variables and iPhones (?)
Feb 19, 2013 04:03 PM|LINK
Deep in testing right now. So far, so good.