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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:00:52+00:00 2026-06-14T13:00:52+00:00

I have a slight issue im trying to wrap my head around.. I have

  • 0

I have a slight issue im trying to wrap my head around.. I have an application that working on and one of the current features is a supervisor override. Ie, if an specific action is requested a supervisor can enter their credentials the action is performed and the site returns the the previous users credentials.

Is this scenario possible using the Yii framework and the Rights extension? and ideas on how to precede would be greatly appreciated..

BTW my initial idea was to save the current user’s session to the DB, destroy it and start a new session..

thanks

EDIT

A scenario that this would fit would be the following:

  1. Jim is filling out an invoice for a customer. The customer requires a discount to be applied but Jim doesn’t have the necessary credentials in the system to perform that task.
  2. Mark, who is a shift supervisor, does have the correct credentials so he clicks a supervisor override button, logs in and applies the discount to the invoice.
  3. Jim proceeds to finish the invoice and go about his duties.

So in this scenario when Mark click on the override button Jim’s session is destroyed and Mark is allowed to sign into the site. Once the task is complete Marks session is destroyed and Jim’s restored.
This is a scenario that is very common in POS systems where a supervisor can authenticate in a system to perform a single task, without making the previous user re-authenticate..

  • 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-14T13:00:54+00:00Added an answer on June 14, 2026 at 1:00 pm

    Instead of destroying the session completely, you could do the following:

    • on supervisor logon being successful, if there is currently a logged in user, store the logged in user credentials in a ‘fallback’ user account of some kind
    • replace the main user model with the supervisor user model
    • allow the supervisor user to do the needed action
    • on logout, if there is a ‘fallback’ user, instead of destroying session, replace the main user model with the ‘fallback’ user model

    Does that make sense? Instead of destroying session (which then would require your original user to re-logon) you could fake the session being destroyed by swapping out whatever info you needed for the supervisor model.

    It might get a bit fragile, but destroying session means you don’t have access to it anymore …

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

Sidebar

Related Questions

I have a slight issue I'm trying to find the best solution for. I
Programming in VB.NET and have another slight issue. I have a TextBox that is
I'm having a slight issue wrapping my head around on how to set up
I have a slight issue that someone might be able to point me in
I am working on a Drupal setup and have run into a slight issue
I have a slight issue. I am trying to replicate the Jenkins projects from
I’ve got a pyparsing issue that I have spent days trying to fix, with
I'm having a slight issue with the Prettify script that I'm trying to integrate
I have a slight issue where I can't seem to select a User Control
First of all: I'm at Scala 2.8 I have a slight issue while using

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.