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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:22:41+00:00 2026-06-11T01:22:41+00:00

Question 1 Basically, what I’m asking is: Is $config[‘sess_use_database’] = TRUE; more secure even

  • 0

Question 1

Basically, what I’m asking is: Is $config['sess_use_database'] = TRUE; more secure even if $config['sess_encrypt_cookie'] = TRUE;?

I keep stumbling on blogs, Stackoverflow posts, and even CI Docs that claim $config['sess_use_database'] = TRUE; is more secure, but it seems that the location user_data is stored (in cookie or in database) shouldn’t quite matter from a security standpoint if the cookie is encrypted anyway.

Question 2

If you set $config['sess_encrypt_cookie'] = FALSE; and inspect the cookies, regardless of the value of $config['sess_use_database'], there is a (what appears to be md5) hash stuck on the end of the cookie – here’s an example:

a:4{
  s:10:"session_id";
  s:32:"a2caac03fc72d709ac280540a09d8ed7";
  s:10:"ip_address";
  s:9:"127.0.0.1";
  s:10:"user_agent";
  s:100:"Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.14 Safari/537.4";
  s:13:"last_activity";
  i:1347228760;
}7aa8ebe3fc462bd86c0c0544a969cbda

What is the significance of 7aa8ebe3fc462bd86c0c0544a969cbda? Where did it come from?

  • 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-11T01:22:43+00:00Added an answer on June 11, 2026 at 1:22 am

    Question 1
    That depends on what you consider secure.

    The custom data you set, will be stored in the database, but session_id, ip_address, user_agent and last_activity will still be stored in the cookie. If you consider these data compromising, then the answer is yes. Otherwise the answer would be no.

    Question 2
    It’s a hash of the serialized data containing your session data combined with your encryption key. This is used to make sure that the cookies data has not been tampered with.

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

Sidebar

Related Questions

This perhaps is a more general jQuery (or even JavaScript) question: Basically I am
I can provide more detail if necessary, but my question is basically thus: If
Basically the question could more probably be more accurately asked, how do I simply
SHORT VERSION OF QUESTION: So basically my question is: How can I set the
Today I stumbled upon this thread: http://www.mathworks.com/matlabcentral/newsreader/view_thread/112560 The question is basically how to make
Basically the question is how do I run gpgpu code in a Metro app.
Basically my question is the exact same one as this: Simple client/server, TCP/IP encrypting
Basically the question is, Why are NONE of the changes I've been making in
Basically my question is i have a website which was developed around 3 years
This question is related to another question I asked Basically, I have 2 horizontally

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.