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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:39:40+00:00 2026-05-26T08:39:40+00:00

Using codeigniter running locally on WAMP and dealing with sessions. I tried the default

  • 0

Using codeigniter running locally on WAMP and dealing with sessions. I tried the default session handler, db session, native session and now db session. They all result in the same issue and I can’t for the life of me figure it out.

The problem is that I am trying to set a session variable using a variable. I have confirmed the variable and have echoed it out and all is well in the controller. The controller calls on a view and the variable is there as well. The view calls on a uploader file and this is where the variable randomly gets set to “style.css” for some reason. If I set the session statically, say to “randyval”, then it sticks. It’s only when trying to use a variable that it breaks.

Using db session allows me to set using:

$some_val = $some_otherVal;
$_SESSION['sess'] = $some_val;

Only in the final page does echo $_SESSION[‘sess’] result in “style.css”.

If however I do:

$_SESSION['sess'] = 'test';

Everything works as should.

Wouldn’t ask unless I was at my wits ends… thanks for any input.

  • 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-26T08:39:41+00:00Added an answer on May 26, 2026 at 8:39 am

    Color me stupid. :\ Turns out there was some bad html that was causing the problem(?). It had to do with, yeah, you guessed it, the header and more specifically where the “style.css” file was being called. Not sure why that was wrecking the session, but it indeed was. So, sorry for wasting everyones time, you can go home now.

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

Sidebar

Related Questions

I am using codeigniter's session class to handle my PHP sessions. One of the
I have an application built with codeigniter using the sessions class and storing session
I'm using CodeIgniter and I got a model that fetches let's say all recipes
I'm using CodeIgniter with CodeIgniter sessions that are stored in a MySQL database. I
I am using codeigniter. My products page shows all the products we have and
I am running multiple applications with a single Codeigniter system/ folder using the recommended
I'm running a CodeIgniter site and using CI's caching tools. On several pages, I
I run multiple websites all running off of a single installation of CodeIgniter on
I'm using CodeIgniter and I added some rules in .htaccess to redirect all requests
I'm using the Codeigniter framework and have tried to stick with the MVC philosophy

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.