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

  • Home
  • SEARCH
  • 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 6254265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:09:07+00:00 2026-05-24T14:09:07+00:00

I just got down uploading and configuring what I thought was correctly for the

  • 0

I just got down uploading and configuring what I thought was correctly for the DX Auth plugin for Code Igniter but now I’m getting a “500 Internal Server Error”. From that link I’m wanting it to go to the login page but maybe I didn’t do something right. http://kansasoutlawwrestling.com/kowmanager

Edit:

Okay so what I did was deleted everything from my server and uploaded the application and system folders to my public_html (www) root directory. I created a controller for my CMS that is called kowmanager. What is going to happen when the controller is loaded it will check to see if a session exists and if not then it will load the login model and view and I’m wanting dx auth to handle that but I’m still not sure how to implement it in.

Edit 2: Any ideas?

  • 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-24T14:09:08+00:00Added an answer on May 24, 2026 at 2:09 pm

    What is going to happen when the controller is loaded it will check to see if a session exists and if not then it will load the login model and view and I’m wanting dx auth to handle that but I’m still not sure how to implement it in.

    If you’re using the Session class, the session itself will always exist – what you really want is to check if the user is authorized or not, so just go ahead and load your auth library right away in the controller.

    Here’s what it might look like:

    class Kowmanager extends CI_Controller {
    
        public function __construct()
        {
            $this->load->library('dx_auth');
    
            // Make sure we don't check permission while on the login page
            $is_login_page = $this->router->method === 'login';
    
            if ( ! $is_login_page && ! $this->dx_auth->is_logged_in())  
            {  
                redirect('kowmanager/login');
            }
        }
    
        function login()
        {
            // Make sure the user isn't already logged in
            // Load your login form
            // Process the login
            // Redirect somewhere else once logged in
        }
    
    }
    

    It seems that DX Auth is well documented, although perhaps a bit outdated, so just follow some of the examples they have provided in the documentation.

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

Sidebar

Related Questions

I just started learning Haskell. I think I've got the basics down, but I
I just got my azure invitation code...yay! Are there any official samples for windows
I just got a fix on another post I just made but this created
I just got started with CodeIgniter and am wondering will it slow things down
I'm completely new to Android development, but I just got a HTC Hero and
I know, it's pathetic, but IT just got around to installing IE8 on my
I got the basic understanding of AJAX down, but I am not sure if
I just got knocked down after our server has been updated from Debian 4
I just got through tracking down a random bug while using Twisted: Traceback (most
Just got a request from my boss for an application I'm working on. Basically

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.