Page 2 of 2
Re: How to tell when a user is no longer logged on?
Posted: Mon Mar 30, 2009 5:44 am
by kaisellgren
John Cartwright wrote:This is especially important when designing applications where content is being pushed from the server to the client,
Hmm. How much content? 10 MB? 100 MB?
Re: How to tell when a user is no longer logged on?
Posted: Wed Apr 01, 2009 8:02 am
by John Cartwright
I'm not exactly sure where you are going with that, but I was mostly referering to live rich content, not any media.
The messages pushed from the server are generally no more than 5kb, in the form of json or xml. I prefer to usage of json becuase I find it much more human readable as well as it helps on keeping bandwidth low when traffic is high.
Re: How to tell when a user is no longer logged on?
Posted: Wed Apr 01, 2009 8:05 am
by kaisellgren
John Cartwright wrote:I'm not exactly sure where you are going with that, but I was mostly referering to live rich content, not any media.
The messages pushed from the server are generally no more than 5kb, in the form of json or xml. I prefer to usage of json becuase I find it much more human readable as well as it helps on keeping bandwidth low when traffic is high.
I was just wondering. Prior to downloading any data, you usually authenticate the user. So, if he is able to start the download, I do not understand why you would need to continue keeping up the session. Maybe there is a unique need in your case.
Re: How to tell when a user is no longer logged on?
Posted: Wed Apr 01, 2009 8:21 am
by John Cartwright
The application I have in mind involves a callcenter, where the operators will have a particular page open for potentially extended periods of time. Secondly, the server will only push messages down to the client when there is something to deliver. In our case we used a Python server to deliver Comet functionality. Since the messages are only delivered when there is content to be pushed, the operators can potentially be sitting there idle also for extended periods of time. Now, our python server is not aware of the existance of PHP, as Apache is running on another port, so it is important to the PHP session "live".
Again, this has nothing to do with the delivery of media or anything like that. My point being, with the development of these rich web applications, we can't really expect our users to periodically navigate around the site to keep their session alive.
Re: How to tell when a user is no longer logged on?
Posted: Wed Apr 01, 2009 8:26 am
by kaisellgren
Well that is pretty interactive scenario. Usually web applications are stateless and so is HTTP. Of course in cases where you need stateness, you would need to keep the session open. For instance, an online IRC chat would require you to keep the session alive. Otherwise, the user might time out. Ok, I see your situation.