[nycphp-talk] Asynchronous downloads -- how?
Jeff Wilhelm - NYPHP
nyphp at summit7solutions.com
Thu Sep 6 08:56:49 EDT 2007
Well you may not need sessions on the other host in the first place, if it's
basically just a repository of files for download. But if your application
requires it, you can certainly do sessions across subdomains.
There are a number of resources on Google, here's one:
http://www.idealog.us/2006/09/php_session_coo.html
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Kenneth Downs
Sent: Wednesday, September 05, 2007 3:02 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Asynchronous downloads -- how?
Jeff,
Can I ask you handle authentication? If the download request goes to
another host, isn't the user basically starting with no session? Or are we
so lucky that a session on www.sitename.com is valid on
downloads.sitename.com?
Jeff Wilhelm - NYPHP wrote:
> The setting is part of the HTTP 1.0 settings set on the client. You
> can edit the registry (as a user) and allow more than two simultaneous
> connections to a site, but as the site operator you are more limited.
> The way most sites (us included) get around this is by having the
> downloads come from downloads.sitename.com whereas the content is server
from www.sitename.com.
> This way the downloads are coming from a different server, and normal
> navigation can continue.
>
>
>
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs
> Sent: Wednesday, September 05, 2007 2:42 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] Asynchronous downloads -- how?
>
> Hi folks,
>
> Let's say you have a link on a page,
> www.example.com/friendly-url/file.mp3, which is actually being handled
> by a PHP file that checks for subscription status and then sends the
> file. It looks like a straight download to the user. So far so good.
>
> Now let's say the file is 50MB, so that a download will take several
> minutes.
>
> When the user initiates the download, and then attempts to go to
> another page on the site, they cannot. All access to the site is
> waiting until the download completes.
>
> I would like the user to be able to continue to navigate while the
> download continues in the background.
>
> The best I could come up with on Google suggests that it is the apache
> server that is limiting the number of requests it will serve to a
> given host. Zend sells something that supposedly cures this for
> downloads, but they wont' give pricing on their site and they did not
answer my inquiry.
>
> Anybody know if an apache setting can be made to allow more
> connections to a domain from a host? At least two I figure, so that
> the download and page navigation can both be going on?
>
> --
> Kenneth Downs
> Secure Data Software, Inc.
> www.secdat.com www.andromeda-project.org
> 631-689-7200 Fax: 631-689-0527
> cell: 631-379-0010
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
--
Kenneth Downs
Secure Data Software, Inc.
www.secdat.com www.andromeda-project.org
631-689-7200 Fax: 631-689-0527
cell: 631-379-0010
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
More information about the talk
mailing list