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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:06:09+00:00 2026-06-01T02:06:09+00:00

I am working on a web-app system that has multiple apps, each with a

  • 0

I am working on a web-app system that has multiple apps, each with a Primary Key to identify them. Each user also has a security level tied to an app, for instance App #1 with a security level of 5. I want to store all the app / security information in the database as a token, and then retrieve that information to store it in Session.

So given the following apps:

  1. Task App
  2. Email App
  3. Notes App

and a user that has security level 3, 5, and 7 respectively, the token will be stored as:

1.3|2.5|3.7.

My question is, how do I retrieve that data in a usable form? I was thinking of having it in an array, with the array key of the App ID, like somearray[1] = 3, somearray[2] = 5, etc, but I have no idea how to handle this.

I’m early in development on this part, so I have a very open mind towards suggestions. Thanks in advance for the help.

  • 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-01T02:06:10+00:00Added an answer on June 1, 2026 at 2:06 am

    the token will be stored as:

    1.3|2.5|3.7.

    Why don’t you store security levels in a database ? It will be much more easy to manage. I could imagine few tables like the following:

    App
    --------
    id
    name
    ....
    
    Users
    --------
    id
    name
    email
    ...
    
    App_users_permissions
    --------
    id
    app_id (references App.id)
    user_id (references Users.id)
    level
    

    Then, you could do a simple query like:

    SELECT level FROM App_users_permissions WHERE user_id = 1 AND app_id = 2
    

    This query would then return the current previlege id, for a given app id and user id.

    I think that would be the easiest way to manage this.

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

Sidebar

Related Questions

I am working on a web app that uses Perl and I need to
I'm working on a web app that is somewhere between an email service and
I'm working on a web app project (in java; not that it matters) and
I'm working on a web app for my company that will let us do
I am working on a web app that will generate an NxN grid based
I've got a little system dashboard web app that I've written, replete with alarm
I'm building a web-based productivity application that has to deal with modest user concurrency,
I'm working on a web app (CMS) that loads controls dynamically into a holder
I'm designing a RESTful Web app that will provide an authentication system for several
I'm working on a PHP web app that calls R through curl and RApache.

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.