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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:01:27+00:00 2026-05-18T21:01:27+00:00

I am developing a social web application in php/mysql, I would like to hear

  • 0

I am developing a social web application in php/mysql, I would like to hear your advice about what would be a better way to implement security. I am planning something like this:-
At the presentation level, I restricting the user to see only those items/content he is eligible to see with the rights he is eligible
&
at the database level, whenever my data is read/ written or updated I verify that the person has rights to such interactions with that part of data.
So for each action there is 2 layers of security one at the view level & another at the database level.
Would double checking be much overhead ?

ofcourse this handles only with the internal security issues ..

  • 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-18T21:01:28+00:00Added an answer on May 18, 2026 at 9:01 pm

    Who knows about the current user?

    If the business layer does not know who the current user is, it cannot do any access control. Rather the presentation must ask the authorization component each time whether a specific user is allowed to perform a particular action. This is O.K. if the presentation layer basically executes some well defined use cases.

    If the business layer does know who the current user is, it might ask the authorization component itself on calls that reach from the presentation layer into the business layer. However, this introduces a lot of redundant checks. This is O.K. if the presentation layer does a lot of nifty things with entity objects of the business layer or when security is critical.

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

Sidebar

Related Questions

I am in the middle of developing a PHP social media web application which
we're developing one service to be integrated with various social networks and would like
I'm developing pretty normal, non-brilliant Web 2.0 applications, like blogs, forums, social networks, etc.
I'm currently developing a web application with Spring Social and Spring Security. In the
I've been evaluating technology stack for developing a social network based application. Below are
I am developing a mobile social TV application on Android.I want to integrate Facebook
I am developing a social networking site. It has functionality like user registration, people
We are developing something like a social networking website. I've got task to do
Background I am developing a social web app for poets and writers, allowing them
I'm developing my own social network, and I haven't found on the web examples

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.