473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to keep a session alive from an iPhone?

I'm a little unsure whether this is a pure PHP problem, but I'm a little lost, so please bare with me.

I'm running an Apache server (2.2.16) on Windows XP installed from the standard win32 binary, with PHP 5.3.3 (again 32bit standard win-installer from php.net).
Almost all settings (in both Apache and PHP) are the default ones.

The problem: I have a web app that uses only 1 page but a bunch of AJAX calls to the server. On the desktop this works fine but on my iPhone (iOS 4.1) the server sometimes stops responding... I have no clue why this is but it only happens in Mobile Safari. If I try to reload the page, I get the "Server isn't responding" message
Is it perhaps a session/connection timeout problem?

Bonus info:
If I restart Apache and reload in Mobile Safari, without having done anything, it works again. Similarly, if I navigate to the "It works!" default page and back to my web app's page, it usually also starts responding again.


Any help would be greatly appreciated!
Nov 4 '10 #1
1 3670
JKing
1,206 Expert 1GB
I would start off by trying to debug your ajax calls to isolate and verify what exactly is causing the problem.
Nov 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David | last post by:
Hi, I write asp.net via c#. How should I know the client's session alive? 1. if ( Session.Equals ( null ) ) 2. if ( Convert.IsDBNull(Session) ) 3. if ( Session.Contents.Count == 0 ) Thanks...
0
by: hoenes1 | last post by:
Hi, in my ASP.NET app, I use a default Session Timeout of 20 minutes. Everything works fine and Sessions are abandoned after 20 minutes. This is exactly the behaviour I expect: After 20 minutes...
1
by: twscott | last post by:
I will be posting information to another application from my applicatio and redirecting to that application which will load into anothe iteration of IE. The user may spend a significant amount of...
0
by: Dave Alvarado | last post by:
I'm working on some code that gathers data from a web interface to one of our servers (classic ASP). The problem is that the site uses session variables to store login information, so to move from...
7
by: mail747097 | last post by:
I would like to keep IIS alive on my web site and prevent Application_End from occuring in global.asax. Any ideas?
0
by: Ramchandar | last post by:
In my aspx page i want the lot of informations to be filled by the user. But wen the user takes some break to fill the form n resumes after some time the page gets expired. So to keep the session...
1
by: soni2926 | last post by:
hi, i'm working on a site, which has a session created after a user logins, each page checks to make sure the session is there onload otherwise redirects to the login page. now the clients are...
1
by: kavitachawoor | last post by:
hello to all, how to keep session variables permanently. because i am passing the session values to one web page and that page i am refreshing becuase of some reason.so after refreshing that page...
2
by: tokcy | last post by:
Hi All, I want to kip session alive until i closed the browser. Default session time 30 minutes and if we are using session.gc_maxlifetime then i have to give specific time like 8 hrs or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.