Post by JAY6390 » Mon Jan 10, 2011 9:55 pm

The session should remain open as long as the download takes - this is more of a server related question, so you would be best to ask your hosting company about this

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Mon Jan 10, 2011 10:12 pm

Open your php.ini file
Find
session.gc_maxlifetime = xxx
and change xxx to the time you want the session to last
Once you have changed that and saved, restart your apache service and it should work from then on
Here's more info for you on the configuration setting
http://www.php.net/manual/en/session.co ... axlifetime

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Mon Jan 10, 2011 10:49 pm

Personally I would use something around 6 hours (just to be extra cautious) - so 21600 but if you thing an hour and a half (6000 seconds) is plenty then sure that's fine

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Qphoria » Tue Jan 11, 2011 12:25 am

I would think that once a download has started, the connection stays open indefinitely. I don't think the http download process polls the session throughout the actual downloading time but I may be wrong.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JAY6390 » Tue Jan 11, 2011 12:27 am

That was my thought too, but servers sometimes have some strange configurations

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Tue Jan 11, 2011 6:07 am

You can check the user agent for the OS
http://www.geekpedia.com/code47_Detect- ... tring.html
Note it's not always accurate (bots etc)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Tue Jan 11, 2011 6:40 am

Oh I see - there's currently no way to give a download based on an option, so you will just have to allow a user to download both files for that product

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by afwollis » Tue Jan 11, 2011 7:10 am

One more question, if we offering one software as download with two options "Windows or Mac version" then according to the selected version how to offer the download. Because whichever version you select both are coming for download, there is any solution/trick?
I've just seen some similar topic before registering.
search around "digital downloads" or "download digital"

there was code-examples and, if I'm right, the last post by Qphoria.

Русское коммьюнити разработчиков OpenCart - myopencart.ru

some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed

My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This


Active Member

Posts

Joined
Tue Jan 11, 2011 5:41 am
Location - Ukraine

Post by JAY6390 » Tue Jan 11, 2011 8:34 am

They get 5 per download - I don't think many people will be download both versions though. If you want to get it working with options you're best hiring someone to develop it for you

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Tue Jan 11, 2011 7:33 pm

Yes it does, but OC's options will be changed dramatically in 1.5 so that is something to take into consideration too since 1.4.x options will likely fail. As for the download count, yes it's 5 each, not 5 in total

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Chones » Wed Jan 12, 2011 7:11 am

To only buy different options of a download you can use my solution - it's not perfect, more a work around / hack, but it does work.

http://forum.opencart.com/viewtopic.php?f=20&t=4084

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London
Who is online

Users browsing this forum: No registered users and 38 guests