Re: Session still open
| From: | Daniel Brown | Date: | Mon, 10 Mar 2008 22:39:19 +0000 |
| Subject: | Re: Session still open | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271239@lists.php.net to get a copy of this message | ||
On Mon, Mar 10, 2008 at 6:23 PM, Bill <billlab51@hotmail.com> wrote:
> At most I'll have a 30 secs. time lapse. (30 secs. is the default execution
> time for scripts)
>
> What do you think of that?
That could work for very short sessions, sure. This was for a
larger, longer, community-style script. And it wouldn't cause very
much stress on the server, actually, but with large communities of
655,350+ (using a Magic Number[tm]), you
surely wouldn't want the cron to run every 10 minutes.
The example from the link is set to see if a user is still active
on the site. If all you want to do is find out if they still have the
socket open, then there are much smaller, simpler ways.
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>