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

  • SEARCH
  • Home
  • 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 937909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:33:15+00:00 2026-05-15T21:33:15+00:00

I am creating a service that allows my website visitors to create content (text)

  • 0

I am creating a service that allows my website visitors to create content (text) and save it so they can access it at a later time. However, users don’t need a user account before they can use this feature. They just click “Try now” and use it. If they want to save their work, then that’s the time they need to sign up.

I am planning to add Uploading of images/files as a feature. However, I’m at a loss for ideas on how to implement this for the “Try now” mode (non-logged in user). On top of my head, I would create a temporary username and store it in a session, and create a corresponding temporary folder where the user’s uploads go to. But, how do I clean it up? The user can just close the browser, and I will have no way of knowing the temporary folders are still being used.

Is there a better way of doing this? Or should I just prevent uploading of files for non-registered users altogether?

I’m using PHP on CodeIgniter by the way.

Your input would be invaluable 🙂 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-05-15T21:33:15+00:00Added an answer on May 15, 2026 at 9:33 pm

    Here one of possible ways to do:

    • On each page request, save the session ID – datetime pair in the database,
    • For every saved image, save the file and the associated session ID in the database.

    Then, you can regularly check for obsolete files. For example, if your session limit is 30 minutes, you can walk through the database and select every expired session, ie. the records where the datetime + 30 minutes is less than now. Then, remove every file stored through those expired sessions.

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

Sidebar

Related Questions

I am currently creating a service which connects to a DAL and that can
I'm creating a service that allows people to purchase configurable websites. But I'm trying
I'm creating a RESTful web service that allows me to import documents by name.
I am trying to build a service in Orchard that allows me to create
I'm creating a windows service that will let different users connect to the PC
I am creating a windows service that starts a number of slave processes. In
I'm working on creating a windows service that will send emails to a customer
I'm manually creating a WCF service that will act as a DAL and have
I'm in the process of creating a web service that uses XML to handle
I am creating an XML web service that passes an array of custom types.

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.