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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:52:58+00:00 2026-05-23T22:52:58+00:00

Hi I’m finishing up a project and I’m suddenly having issues with CI .

  • 0

Hi I’m finishing up a project and I’m suddenly having issues with CI. I’m running version 1.7.2 and I’m using the CI session class for setting and getting session data.

This happens in Firefox and IE. What’s weirder is the application only works properly in Chrome. I have verified that this is happening in older builds of the application too which didn’t have any issues previously.

Here’s my config:

Session

$config['sess_cookie_name']        = 'ciprojectname';
$config['sess_expiration']        = 7200;
$config['sess_encrypt_cookie']    = TRUE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']        = 'sessions';
$config['sess_match_ip']        = TRUE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']     = 900; 

Cookies

$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/"; 

I played with adding the cookie domain but the issue still happens. I’ve also read that it could be a time syncing issue with the server time but I’ve tried it on multiple servers. I guess the first thing to look at is why would CI would work in one browser and not others.

Any help would be greatly appreciated.

Update

I never described the issue in detail:

When I try to access /controller/method it’ll reload the current page and do nothing. Sometimes if I add /controller/method/ <– forward slash, it will render the next page.

  • 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-23T22:53:00+00:00Added an answer on May 23, 2026 at 10:53 pm

    My guess is that Firefox and IE are resetting session data between loads. In most cases this is caused by server settings. My guess is it worked fine on localhost and is now having problems once moved to a remote server.

    First, find the problem. You must pinpoint exactly where the problem occurs. Some suggestions:

    1. Check server log to see how date is being set. Is the Year 0000. If all servers have the same version of PHP then this could be your problem. It is a known bug for some PHP versions. https://bugs.php.net/bug.php?id=48276

    2. If no, is the Database getting the session data? If yes, then you can watch the data as you move from page to page to see if the session is being reset. If so, it is most likely a server settings issue.

    3. If no, check your browser security settings. Once moved from localhost, there could be a security issue.

    4. If no, try changing from default to $config[‘sess_expiration’] = 43200; Some recommend this to work when there is an issue with dropping sessions.

    5. If no, Change sess_match_ip to False and Try it in Firefox and IE. It goes along with browser setting issues.

    6. If the problem is still not clear, usa a reduction test – the minimum code needed to recreate the problem. Create a single controller with a “setsession” and a “readsession” function. Try reloading the page in each browser to see if the session renews. Look at the server log and your database. If this works then the culprit would seem to be some data being sent in the session that the problem browsers do not like.

    The underlying issue is most likely one or more of the following:

    A. An invalid character in session data

    B. Server Time Settings

    C. Security Settings in IE and Firefox (if the server changed from localhost)

    D. Problem with Date Bug in PHP

    If you are still having problems, it may be time to consider using the Native Session Library: http://codeigniter.com/wiki/Native_session/

    It seems this problem is so prevalent that someone made a custom class for CI Sessions: http://www.philsbury.co.uk/blog/code-igniter-sessions it may be worth a shot.

    Hope this helps.

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

Sidebar

Related Questions

I'm SOO close to finishing a pet project, this is the last part I
I am very close to finishing this project however I have a problem that
I'm finishing a C project for class due tomorrow at 11pm and the last
I am finishing up a rewrite of a project management tool using ASP.NET MVC,
I'm pretty new to Java and I'm finishing my first project using it. Basically
I've been working on this project for iPhone/iPad devices, and after finishing the iPhone
I'm working on trying to get a print server running using this: http://newcenturycomputers.net/projects/rawprintserver.html I've
I'm just finishing a relatively big project in scala and will start another related
I am really close to finishing up on a project that I've been working
I'm finishing up the Core Data tutorial, and it suggests trying to convert to

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.