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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:45:27+00:00 2026-06-19T02:45:27+00:00

I am a novice php programmer building a multiuser application in codeigniter. Now, my

  • 0

I am a novice php programmer building a multiuser application in codeigniter.

Now, my boss has told me to look into the ability to log out people based on their changed user access privileges.

Fx. A guy is logged in as a semi admin, but has just been demoted by a real admin to regular user status. Now the semi admin should supposivly be logged out when that happens but this is where my problem occurs.

I can think of a few ways to do this but they all revolve around doing checks that will be redundant in most cases (this is a rare situation but it has occured, i have been told)

My best bet at the moment is to log all the active users in a session db and force them to relog in if their user role changes.

This however is going to generate a lot of trafic on the server for a rare “problem” as the user session data is more fittingly put into a regular session.

So my question in short is, how can i log out a user when his user privileges are changed, without working my server too hard.

Thanks in advance!

  • 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-19T02:45:29+00:00Added an answer on June 19, 2026 at 2:45 am

    You can check if privileges have changed periodically, like once every 10 minutes, this should reduce the amount of “useless” queries and still ensure that there is an acceptable response time to a logged in user privileges being changed.

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

Sidebar

Related Questions

I'm a novice Java programmer, and am just now beginning to expand into the
I'm a novice php programmer and having a problem assembling this code to work.
I am novice PHP programmer and I have created a function that changes an
I'm new here, also a novice programmer, and not really familiar with PHP. I
I'm a pretty novice programmer who is making an application where there are multiple
Php novice. 1.Is there anything wrong with this PHP & MySQL code? include_once db_login.php
I'm a PHP novice, and I recently found this database-free pagination script on a
I'm a novice when it comes to SQL and PHP, and I'm trying to
I'm a bit of a novice to PHP and MySQL. I'm creating my own
I am a novice at Wordpress but I am very familiar with PHP and

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.