473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access by user in php

Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.

Thanks!

Ezequiel

Jan 4 '06 #1
2 1335
zek2005 wrote:
Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.


I do that on a number of projects by using the user management class
that I developed: http://sf.net/projects/phpsecurityadm

There isn't any real documentation for using it in the way of tutorials
or anything, but there is a set of example of scripts that make up the
UI for managing the users.

If you want more info or help integrating something like this, just send
me an email for more info.

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Jan 4 '06 #2
zek2005 wrote:
Hi!!!!

I started to work with sessions and I have a doubt about users access.
Is there a way to allow a group of users to do something that another
group can't?

I mean, I am giving the chance to interchange customers between branch
managers, but I don't want the the personnel bellow manager can do it.
So if this personnel enter the application made in php, they can see
and do things different that the manager.

If there any article, page or explanation about it, I will appreciate.


Sorry, don't know :)
The easiest way would be to assign privileges to users. I assume you
store staff records in database so, add something like 'access' field.
Then, perhaps, have access=200 for managers and access=100 for personnel
under them. In the script, before showing an "interchange" page, check
the access of logged user, and if it is below 200, deny access.

--

- lüpher
---------------------------------------------
"Man sieht nur das, was man weiß" (Goethe)
Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
16
by: Rob Geraghty | last post by:
I've just spent some time looking through FAQ sites and searching the google archives of this newsgroup, but I still haven't been able to find a clear explanation of an issue with multi-user...
6
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
22
by: Deano | last post by:
Hi, I have a finished Microsoft Access app that we are distributing using an Access runtime. This works fine (mostly) but I'm sold on the advantages of dot.NET and upgrading to vb.NET seems...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
6
by: cyndithomas via AccessMonster.com | last post by:
I new to Visual Basic and am struck on a issue. Have created a Login in Screen for Remote User to access and input data. Want the Remote to be able to login & access the Input Form, and Manager...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.