473,320 Members | 1,695 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,320 software developers and data experts.

how to restrict users from entering admin pages from url

The following is my block of code and still from the url user can access the admin page without been logged in.
Please, i need help
Expand|Select|Wrap|Line Numbers
  1. if(!isset($_SESSION["useradmin"]))
  2. {
  3.   header('Location: login_admin.php?error=Access denied'); 
  4.   exit();
  5. }
Oct 12 '16 #1
1 1078
Dormilich
8,658 Expert Mod 8TB
The following is my block of code and still from the url user can access the admin page without been logged in.
then obviously $_SESSION["useradmin"] is always set albeight with different values.
Oct 13 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
We have an intranet application that is under Integrated security. So in theory, anyone who has an Active Directory account in the company can access my app. So, to allow only certain users, I...
1
by: Laphan | last post by:
Hi All I've created an admin side for my ASP site and I use session vars to provide page security. Just as a bit of advice, I want to know if I should expire each admin page so that others...
3
by: Dalibor | last post by:
How to protect administration pages from entering. I put login form on my start page (index.php), and if user put correct data, script redirect him on page admin/admin.php. That works fine! But if...
9
by: antonyliu2002 | last post by:
I am not sure how to google this concept. Basically, what I wanna do is to direct different users to different pages. I do not have a whole lot users. For example, if user name 'tomcat'...
1
by: thavaht | last post by:
I’ve been searching on the forum and don’t seem to find a post that matches my question: I need to restrict access to some php pages on a web site to computers on the same domain or local network,...
2
by: sushilviews | last post by:
Hi, I want restrict users from using the backward navigation buttons or backspace key in IE or may be in any browser. What is the the best way of not allowing the user to restrict backward...
1
by: KayC | last post by:
Hi Can anyone help? I run Access2000 and would like to restrict users from creating a pivot table linking to my access tables Is this possible?
4
by: vinpkl | last post by:
hi i am working on admin section which has a login page with login id and pasword form. in my admin section i have many pages say like manage_products.php, description.php, user.php etc. if i...
1
by: viana2020 | last post by:
hey,how can i direct users to their specific pages on login?and to make users only view their entries and not anyone else's. below is my html code which is loggin in but to a common page. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.