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 3631536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:24:35+00:00 2026-05-19T00:24:35+00:00

I have two questions: Would it be significantly slower to have a class for

  • 0

I have two questions:

  1. Would it be significantly slower to have a class for sessions in PHP? I mean, nearly duplicate with the current $_SESSIONS, except it’s handled by a class using file IO, un/serialize, cookies and so forth… I’m just having issues with how PHP handles it’s sessions.

  2. Is it bad to have lots of files in one directory? Around 50k or 60k? Should I use a database or merge them into a lesser amount of files, or is it unnecessary?

  • 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-19T00:24:36+00:00Added an answer on May 19, 2026 at 12:24 am
    1. It wouldn’t be slower if properly designed, but i would highly recommend that you do not do that. Reinventing the wheel is never a good option. Thousands of people have already worked on PHP sessions and code written by thousands is by far less error prone than individually written code. You need to be knowledgeable of too many things to implement your own sessions system(including security etc..).

    2. Generally speaking, files are faster for sequential data. However, a database is much more flexible and at times can be faster. I would personally use a database for sure. Messing with so many files would require that you write a whole frontend system. Why would you want to mess with that when a dbms offers that out of the box ?

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

Sidebar

Related Questions

I have found possible slowdown in my app so I would have two questions:
I have two questions regarding python libraries: I would like to know if there
I have two questions per div (page) that look like this: <div id=page5 class=page
I have two questions: 1) I have a few global variables for my website
I have two questions: (1) I learned somewhere that -O3 is not recommended with
I have two questions: From personal experience, what free blog engine is the best
I have two questions about java.awt.Shape . Suppose I have two Shape s, shape1
I have two questions 1) my interface i have interface called IRegister and within
I have two questions. 1) Should you always use a using statement on a
i have two questions, that i encountered in my learning project 1) Setting: i

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.