Jump to content

Help with sessionID and download limits


ultraPHPnoob

Recommended Posts

I don't know if this is the right sub forum, but here's the question anyway:

 

When you run a PHP board that's based on a PHP session ID for each user, is it possible to edit the php.ini or any other file to restrict the amount of simultaneous downloads for each user/session? I can see in PHP.ini that there are restrictions for uploads, but NOT downloads. :(

 

I'm running a board with lots of attachments on it, and the users are taking too much bandwidth these days. And my PHP board doesn't support any download restrictions either. There's no plugins for this, so I was hoping for some guidance here.

 

I thank you all in advance for any help!

Link to comment
Share on other sites

  • 2 weeks later...

Why not add a field to the user table called dl-limit and whenever they download a file increase the counter. Then check this (with the session_id) before proceedign with the download.  When they log off, reset the dl field to 0 again.

 

That sounded like a good idea! But I would need some help to setup something like that though. I'm not sure what you're talking about here on a technical level. :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.