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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:54:54+00:00 2026-06-15T19:54:54+00:00

I’ve started using Tank Auth in my CodeIgniter App, I have followed some tutorial

  • 0

I’ve started using Tank Auth in my CodeIgniter App, I have followed some tutorial steps to set it up, and as long as it works, it produces lots of error messages during account activation and logout. Here are the errors:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: session_id

Filename: libraries/Session.php

Line Number: 272

A PHP Error was encountered

Severity: Notice

Message: Undefined index: ip_address

Filename: libraries/Session.php

Line Number: 272

A PHP Error was encountered

Severity: Notice

Message: Undefined index: user_agent

Filename: libraries/Session.php

Line Number: 272

A PHP Error was encountered

Severity: Notice

Message: Undefined index: last_activity

Filename: libraries/Session.php

Line Number: 272

A PHP Error was encountered

Severity: Notice

Message: Undefined index: session_id

Filename: libraries/Session.php

Line Number: 288

A PHP Error was encountered

Severity: Notice

Message: Undefined index: last_activity

Filename: libraries/Session.php

Line Number: 289

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /projekt/system/core/Exceptions.php:185)

Filename: libraries/Session.php

Line Number: 675

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /projekt/system/core/Exceptions.php:185)

Filename: helpers/url_helper.php

Line Number: 542

Here’s the code at the reference points:

    foreach (array('session_id','ip_address','user_agent','last_activity') as $val)
    {
        unset($custom_userdata[$val]);
        $cookie_userdata[$val] = $this->userdata[$val]; //272 line
    }

    $this->CI->db->where('session_id', $this->userdata['session_id']); //288 line
    $this->CI->db->update($this->sess_table_name, array('last_activity' => //289 line $this->userdata['last_activity'], 'user_data' => $custom_userdata));
  setcookie( // 675 line
              $this->sess_cookie_name,
              $cookie_data,
              $expire,
              $this->cookie_path,
              $this->cookie_domain,
              $this->cookie_secure
          );
  • 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-15T19:54:56+00:00Added an answer on June 15, 2026 at 7:54 pm

    It does not look like these errors are serious ones as they are still only on the notice level of the error hierarchy. I would look at the source code of code-igniter and see what’s up. The source is worth understanding how to edit and navigate, as it will save time later. Since I have not used Tank Auth I’m not sure what the exact problem is. I would advise setting up var_dump statements in your source to track what it going on. It does look like some either model or session variables do not exist in the context of your library or what ever other third party tool you are using. You might need to declare an instance of codeigniter in order to work with these third party tools as they exist outside the scope of codeigniter.

    $_CI =& get_instance(); // creates a CI instance that can exist outside of the MVC setup
    

    You can check out more at this tutorial under the section: Utilizing CodeIgniter Resources within Your Library
    http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't

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.