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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:12:10+00:00 2026-05-24T02:12:10+00:00

What is the pattern used by CodeIgniter to store session values on the database?

  • 0

What is the pattern used by CodeIgniter to store session values on the database?
I thought it was only a CodeIgniter way to store it but I just found another PHP projet (not using CI) that uses the same pattern.

a:11:
{
s:10:"usuario_id";
s:1:"1";
s:13:"usuario_login";
s:5:"admin";
s:13:"usuario_senha";
s:40:"8cb2237d0679ca88db6464eac60da96345513964";
s:12:"usuario_nome";
s:13:"Administrador";
s:13:"usuario_email";
s:26:"desenvolvedor.01@gmail.com";
s:18:"usuario_registrado";
s:19:"2011-05-06 16:25:33";
s:13:"usuario_chave";
s:0:"";
s:14:"usuario_status";
s:1:"1";
s:14:"usuario_logado";

b:1;
s:8:"setor_id";
s:6:"images";
s:12:"setor_numero";
s:3:"017";
}
  • 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-24T02:12:10+00:00Added an answer on May 24, 2026 at 2:12 am

    That is what happens when you call serialize on something in PHP.

    Serialize documentation:

    Generates a storable representation of a value

    This is useful for storing or passing PHP values around without losing their type and structure.

    To make the serialized string into a PHP value again, use unserialize().

    As a note, "storable", here, means "String" (I believe in all cases)

    To get a better idea as to what’s in there:

    a:11: // <-- array has 11 keys (this will alternate key/value
    {
    s:10:"usuario_id"; // <-- string 10 characters long which is the first key
    s:1:"1"; // <-- string 1 character long which represents the first value
    s:13:"usuario_login"; // <-- string 13 characters long (second key)
    s:5:"admin";// <-- string 5 characters long (second value)
    // yada yada
    s:14:"usuario_logado";
    b:1; // <-- boolean TRUE
    // yada yada
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Repository pattern is used to abstract from particular database and object-relation-mapping technology(like EF) used.
My most used mini pattern is: VideoLookup = new ArrayList { new ArrayList {
The singleton pattern is a design pattern that is used to restrict instantiation of
Has anyone ever used the Bridge pattern in a real world application? If so,
Apple describes the architectural pattern used by iPhone apps as MVC. However, virtually no
Is the MVC design pattern used in commercial computer games? Particularly with regard to
[^\x20-\x7E] I saw this pattern used for a regular expression in which the goal
What is the purpose of the PropertySpecified pattern used by XML Serialization ? What
Please give me an example for MVC pattern used in Java SWING package ?
We are trying to get the Model-View-Presenter pattern used on (virtually) all new dev

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.