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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:17:07+00:00 2026-05-27T11:17:07+00:00

I am using Tank Auth for user authentication. I am using the database to

  • 0

I am using Tank Auth for user authentication. I am using the database to store sessions and using $this->auth->tank_auth->is_logged_in() to check if user is logged in. HMVC is also used, where auth module contains tank_auth.

Problem: It seems that some browsers cannot successfully log in into the website, including IE8, Chrome 15.0.874.121. Earlier versions of Chrome and IE are able to login. I did a trace of redirects and found out that upon logging in, the user is redirected to the main page, where the check is_logged_in() fails and redirects the user back to the login back. Anyone knows the problem?

Config.php

$config['sess_cookie_name']     = 'ci_session';
$config['sess_expiration']      = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie']  = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']      = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 300;

CI Controller Code

function index() {
    $this->load->module('auth');
    if(!$this->auth->tank_auth->is_logged_in()) {
         redirect('login');
    } 

    $this->load->view('main');

}
  • 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-27T11:17:08+00:00Added an answer on May 27, 2026 at 11:17 am

    I have seen problems with this before where it only works in some browsers. I can not find the link but I read somewhere that it is the varchar size of useragent in DB that causes the problem. The solution was to make it larger.

    Maybe this will help

    http://codeigniter.com/forums/viewthread/197101/

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

Sidebar

Related Questions

I am using Tank Auth for Codeigniter to facilitate user registration and login. Problem:
Using Tank Auth for first time along with HMVC. In my application there are
I am using Codeigniter PHP Framework with Tank Auth authentication library. In my config
I'm using a reCaptcha class (the one that's included in the Tank Auth authentication
I am using the Tank Auth library for CodeIgniter. When a user is registered,
I am using Tank Auth authentication library with Codeigniter 2.0.3 (one version before the
I'm using Tank Auth (it's working fine), but I can't get the form validation
I am using Tank Auth, and require my users validate their email addresses. Upon
I've got a login form and I'm using Tank Auth for form validation, etc.
I'm using Codeigniter and Tank Auth for a e-commerce website. I'm finding that if

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.