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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:40:25+00:00 2026-05-28T02:40:25+00:00

I am using the Cart class of CodeIgniter, basically that’s just sessions. Now, Safari

  • 0

I am using the Cart class of CodeIgniter, basically that’s just sessions. Now, Safari is handling them perfectly fine and is doing what it is supposed to do. IE, on the other hand, does not store them.

So after a while of trying to fix this, I figured to add the sessions to the database.
Safari adds one result to the database with all fields filled out. Now IE. It adds around 5 items to the database with the row ‘user_data’ being empty.

This is the method adding the item to the cart;

    /**
* Method to add an item to the shopping cart.
*
* @access public
* @param integer $product_id
* @param string $name
* @param string $name_clean
* @param string $image
* @param integer $price
* @return boolean
* @since v0.1.0.0
*/
public function insert_item_cart($product_id='1',$name='default',$name_clean='default',$image='default',$price=1.00)
{
    // Prepare the data to be added to the cart.
    $data = array(
        'id'            => $product_id,
        'qty'           => 1,
        'name'          => $name,
        'price'         => $price,
        'options'       => array('name_clean' => $name_clean,'image' => $image)
    );

    // Insert the item to the cart.
    if ($this->cart->insert($data))
    {
        return true;
    }
    else
    {
        return false;
    }
}
  • 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-28T02:40:25+00:00Added an answer on May 28, 2026 at 2:40 am

    I fixed it by finding a website on Google after reading through 20 pages.
    Fixed after changing

    $config['sess_cookie_name']     = 'ci_session';
    

    to

    $config['sess_cookie_name']     = 'cisession';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using CodeIgniter's Session class to manage my sessions for a cart/checkout system. The
I am using the cart class for a shoping cart. Now I want to
Using C#, I need a class called User that has a username, password, active
I'm using Codeigniter and Tank Auth for a e-commerce website. I'm finding that if
I'm using python for my shopping cart class which has a list of items.
I'm trying to add a view cart button to my website that is using
I have a virtual shopping cart using sessions (sessions stored in the DB). I
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

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.