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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:49:17+00:00 2026-06-03T13:49:17+00:00

So I have a framework we’ve built on codeigniter. It uses regular codeigniter sessions

  • 0

So I have a framework we’ve built on codeigniter. It uses regular codeigniter sessions by default which allows up to 4kb storage encrypted on a cookie.

Its for general apps that require a registration process, which can vary in size as questions are generated dynamically through an admin panel. Registration process relies on session data as it redirects throughout process.

I have used db_sessions in the past when I knew this would be an issue on the framework, however, I’m now considering the possibility to always have registration process using db_session and the rest of the site use the 4kb cookie session.

Is this possible. It seems like it could be a really bad idea, but I don’t really want to rework the dynamic registration process or really use db_session for whole site as it will eventually make the site run very slow if too many users are online at once.

so I’m think I can just set the variable in config to be true only when the registration controller is loaded(by checking the url via $_SERVER or the uri helper if I can load it in the config which I’m guessing I cant).

Does this seem plausible?

  • 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-03T13:49:18+00:00Added an answer on June 3, 2026 at 1:49 pm

    It seems like it could be a really bad idea

    You answered your own question 🙂 You’ll have issues when the user switches from one page to another. What happens if they open multiple windows, press a ‘back’ button etc. You’ll need to switch the cookie over when they start registration, and switch it back at the end. It will be very very messy for basically no gain.

    but I don’t really want to rework the dynamic registration process or
    really use db_session for whole site as it will eventually make the
    site run very slow if too many users are online at once.

    The reality is; your website has to be huge to have ANY real performance issues by using a DB for your sessions. Any if you are not using the DB, then you are relying on the cookie stored on the users computer. Depending on your site, this means they might have the ability to edit that cookie and change “admin = true” or something.

    Just use the DB session – I think you are overcomplicating the situation.

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

Sidebar

Related Questions

I have a framework with a DDD data layer which uses the service locator
I have play-framework application that uses one module which I've created by play new-module
I have Entity Framework entities Events which have an EntityCollection of RSVP. I want
Let's assume I have a framework written in Java and some C++ code which
I have a framework that uses log4net for logging, I know that we can
We have a framework built on top of spring and we would like to
I have a framework that allows users to do queries to a specific datasource
I have a framework library which would do a lot of things including logging.
I have a framework which works this way: After defining some meta data, it
I have a framework which currently requires pretty verbose setup in Spring: <bean id=dpHibernateRemotingAdapter

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.