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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:44:54+00:00 2026-05-22T23:44:54+00:00

Im creating a authentication for my web (currently im using codeigniter as my php

  • 0

Im creating a authentication for my web (currently im using codeigniter as my php framework).

How come when i set TRUE in the $config['sess_use_database'] = TRUE;

my session data’s disappears and doesn’t display in part of the page. Im trying to display the username of the person who login to the site.

When the $config['sess_use_database'] = FALSE; the username displays in the page.

anyone experience this problem? how can i resolve this?

  • 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-22T23:44:55+00:00Added an answer on May 22, 2026 at 11:44 pm

    You need to create database table to store session data:

    CREATE TABLE IF NOT EXISTS  `ci_sessions` (
    session_id varchar(40) DEFAULT '0' NOT NULL,
    ip_address varchar(16) DEFAULT '0' NOT NULL,
    user_agent varchar(50) NOT NULL,
    last_activity int(10) unsigned DEFAULT 0 NOT NULL,
    user_data text DEFAULT '' NOT NULL,
    PRIMARY KEY (session_id)
    );
    

    And then set $config['sess_table_name'] = 'ci_sessions';

    http://codeigniter.com/user_guide/libraries/sessions.html

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

Sidebar

Related Questions

I have just succeeded in creating oAuth authentication for my twitter application using PHP.
I am creating a web application using Form Authentication of Asp.Net with C# and
I am creating a PHP based web application which requires simple authentication to use.
I'm creating a web app that requires registration/authentication, and I'm considering using an email
I'm creating a web service (and test client) that uses mutual authentication. I've used
I'm creating a web service using PHP5's native SOAP Methods. Everything went fine until
In my asp.net web application, I'm using asp.net forms authentication with following configuration. <authentication
I'm creating a REST web service using spring and I need to implement login/logout
I am creating my first web application and want to setup a user authentication
Possible Duplicate: Bottle-friendly WSGI authentication library/middleware I'm creating a simple web application with Python

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.