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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:16:03+00:00 2026-05-17T00:16:03+00:00

Is it safe to store the user’s role in Codeigniter’s session? The role will

  • 0

Is it safe to store the user’s role in Codeigniter’s session?

The role will determine what function the user will have; that is being a admin, a regular subscriber, or a premium user.

I am also storing the session in a database for additional security, but I would like to know if I should use a alternate route, such as querying the user’s id and checking their role but I believe that just taking it one step further in authentication.

Please advise.

  • 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-17T00:16:04+00:00Added an answer on May 17, 2026 at 12:16 am

    Yeah that’s safe. If it’s stored in the database, there’s pretty much nothing a user can do to tamper with the data.

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

Sidebar

Related Questions

Is it safe to store user inputted passwords in session variables which are used
I need to store some session related data for a user. This data does
I'm considering using the Session variables to store the Connectionstring for a particular user
I have the feeling that I should not care about thread safe accessing /
While my service executes, many classes will need to access User.Current (that is my
I have this app of mine that contains a section that will allow the
I thought to store the type of the currently logged in user in session[:user_type]
I want to get user input in one page, store that in a php
Is it safe to store for example user permissions like $_SESSION['username']='vputin'; $_SESSION['ip']=$_SERVER['REMOTE_ADDR']; $_SESSION['canlaunchnuclearstrike']=true; Are
Is it 'safe' to store cipher parameters in the (unencrypted) header of an encrypted

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.