Lets say I'm logged in wiith a session to devnetwork.net and I start a new browser instance. When the new instance goes to devnetwork.net it shares the already open session with the first browser instance. Is something special done to allow this?
Is there a way or a mechanism to do this with download managers? So a logged in user can launch a manager and share the authorized session for a download?
Right now the download manager is denied because its session data is empty. I've been doing an ip address comparison to authorize download managers of logged in users, but I don't like this method.
Any ideas on how to do this differently?
Session sharing for download managers? [solved]
Moderator: General Moderators
Session sharing for download managers? [solved]
Last edited by Eric! on Tue Jun 30, 2009 8:27 am, edited 1 time in total.
Re: Session sharing for download managers?
Yes, they are sharing the same cookie, with the same session ID stored in it.Eric! wrote:Lets say I'm logged in wiith a session to devnetwork.net and I start a new browser instance. When the new instance goes to devnetwork.net it shares the already open session with the first browser instance.
Is something special done to allow this?
I'm not sure what you mean by download managers in this case... Do you mean it's "resume download" feature?Eric! wrote:Is there a way or a mechanism to do this with download managers? So a logged in user can launch a manager and share the authorized session for a download?
Right now the download manager is denied because its session data is empty. I've been doing an ip address comparison to authorize download managers of logged in users, but I don't like this method.
Any ideas on how to do this differently?
There are 10 types of people in this world, those who understand binary and those who don't
Re: Session sharing for download managers?
How does the new instance share this?VladSun wrote: Yes, they are sharing the same cookie, with the same session ID stored in it.
These are plug-in or stand alone download accelerators which can open streams from multiple server mirrors (I'm just doing it on one server) to speed fie transfers. Firefox has a small one built in and the only feature is pause/continue.VladSun wrote: I'm not sure what you mean by download managers in this case... Do you mean it's "resume download" feature?
If I allow downloads to only authorized sessions, the download tools are blocked. I would like to find a way to share the session, if possible. I am hoping there is a standard method for this between applications.
Thanks for helping, I know it's probably outside the normal php relm.
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Re: Session sharing for download managers?
This is a server side, and is not related to php.
Try to look for something called: HTTP Status: 206 Partial Content and Range Requests.
Information that you server is sending should look like:
Try to look for something called: HTTP Status: 206 Partial Content and Range Requests.
Information that you server is sending should look like:
Code: Select all
HTTP/1.0 200 OK
Date: Mon, 05 May 2008 00:33:14 GMT
Server: Apache/2.0.52 (Red Hat)
Accept-Ranges: bytes
Content-Length: 3980
Content-Type: image/jpeg
Re: Session sharing for download managers?
No, I know all about this for supporting resumed downloads.BornForCode wrote:This is a server side, and is not related to php.
Try to look for something called: HTTP Status: 206 Partial Content and Range Requests.
I'm talking about sharing a php session with a download accelerator. Like opening a second instance of a browser and having it automatically share an active session.
Re: Session sharing for download managers?
A cookie is a file - every instance of the browser can read it.Eric! wrote:How does the new instance share this?VladSun wrote: Yes, they are sharing the same cookie, with the same session ID stored in it.
You may pass the session ID as a GET parameter and initialize the session with it.Eric! wrote:These are plug-in or stand alone download accelerators which can open streams from multiple server mirrors (I'm just doing it on one server) to speed fie transfers. Firefox has a small one built in and the only feature is pause/continue.VladSun wrote: I'm not sure what you mean by download managers in this case... Do you mean it's "resume download" feature?
If I allow downloads to only authorized sessions, the download tools are blocked. I would like to find a way to share the session, if possible. I am hoping there is a standard method for this between applications.
Thanks for helping, I know it's probably outside the normal php relm.
This will work on a single server and as long as the session is active.
There are 10 types of people in this world, those who understand binary and those who don't
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Re: Session sharing for download managers?
Then the load is moved on your download accelerator tool.
You must ensure that the download accelerator can read/create the cookies. Some download accelerators are able to authenticate (if you provide user and password) and start downloading using session sharing.
You must ensure that the download accelerator can read/create the cookies. Some download accelerators are able to authenticate (if you provide user and password) and start downloading using session sharing.
Re: Session sharing for download managers?
Yes, that's right. I am stupid. Put the session id in the URL. Duh. Thanks for clearing the fog....VladSun wrote:You may pass the session ID as a GET parameter and initialize the session with it.
This will work on a single server and as long as the session is active.