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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:43:10+00:00 2026-06-05T05:43:10+00:00

In my different script (not using Codeigniter on this, but its on the same

  • 0

In my different script (not using Codeigniter on this, but its on the same domain) I’m setting my session data this way:

<?php
session_start();
$_SESSION['something'] = 'test';

How comes it does works in that separated file but it doesn’t in the Codeigniter session?

When I’ll var_dump( $this->session->all_userdata() ); in any Codeigniter controller it doesn’t show my 'something' session data.

Whats wrong? Can it be done this way?

  • 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-05T05:43:12+00:00Added an answer on June 5, 2026 at 5:43 am

    Codeigniter manages its own sessions, and has a few different storage methods ( it doesn’t necessarily use php’s native session storage as a backend).

    You should still be able to access your something variable in codeigniter by doing

    session_start();
    var_dump($_SESSION);
    

    If you’re not worried about modifying the CI core, you can modify the session library to pull in data from $_SESSION.

    A cleaner solution would be to write a hook that merges the native CI sessions with the default PHP $_SESSION superglobal.

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

Sidebar

Related Questions

I'm using this jQuery Infinite Carousel but in a slightly different way to the
This one boggles my mind. I've used this same script (different targets of course)
I've made script which change information from different site, its occure when i click
How to compare two property files in two different folders using shell script input
I want to run my make with -j8 if I'm not using distcc, but
I am trying to restore a DB using an SQL script, but things foreign
Since I've not done this before I am not sure if the way I
I have a simple PHP script using imagecreatefromjpeg to create a thumbnail version of
I have a script that I have been using on a number of different
I am using colorbox which I have used many times for different clients, but

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.