Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8445953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:47:46+00:00 2026-06-10T09:47:46+00:00

I have been using a database implementation to limit only one download at a

  • 0

I have been using a database implementation to limit only one download at a time on my server. This is kind of error prone and has known issues, so I thought about trying to do it with the session variables instead. Only problem is that I use the following command before i start sending the file so that the user can browse the site still while downloading:

session_write_close();

I want to check if a variable in the session exists, then if not add one, close session, then re-open the same session and delete the old variable that i added. Is this possible? Or is there an easier way to go about this? Or should i just stick with db implementation.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:47:48+00:00Added an answer on June 10, 2026 at 9:47 am

    In the end I could not find a stable Session solution, as it was causing corruption in the session, so I ended up just sticking with my database implementation for now. Sorry this question will not help future searches 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been using codeigniter active record class for database acces, But one thing
I'm fairly new to database programming in WinForms, and have been using BindingSource, DataSet,
I have been working with iPhone application in which i am using sqlite database.
I have a database with existing data, where previously I've been using AUTO_INCREMENT on
I've been trying to map an object to a database using SQLAlchemy but have
I have been using TortoiseSVN for some time and I really like it. I
I have been using play 1.2.5rc4 for development of one app and I have
I have been using an API to do some work. This is how I
I have been using Linq-to-SQL for a while to get access to my database.
I have been using mysqldump for backup purposes. We have a new database here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.