![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Member Level 3 | Working on some admin pages for a PHP/MySQL application. I'm really new to these languages, I've only read like 2 tutorials, so bear with me. I coded a basic login page with username and password fields. When the correct ones are entered the user is taken to the administrator menu page. From there, you can navigate to a ......./create.php page, for example. My concern is that a user can skip the login process altogether if he/she types http://<path>/create.php directly into the address bar, which takes the user directly to that page and bypasses the login process. Is there anyway to prevent this, like to secure all the pages accessed after logging in? I was researching this and I think I have to start a session with the session_start(); command, but it kept giving me errors dealing with session_cache_limiter or something similar. Does anyone have any good ideas how to do this? | ||
| | |
| | #2 | ||
| Back Office Guy- ![]() | Okay two points. First u need to learn sesssions very important if u want to create some sort of secure app u will need to a session on each page where u want to track the user and it must be the first command! Code:
For the second part to avoid ppl being able to have direct access to secure pages u will need to create a function to checked the user is logged in before the page is displayed. U could also secure it a little more by include the secure page rather than redirecting to it. Also using some thing this below will at another small layer of security Code:
__________________ http://www.backwebservices.co.uk | Free Lance Web Coder | Ebay & Paypal Solutions Provider | ||
| | |
| Featured Websites | ||||
|
![]() |
| Tags: php, question, session |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| psp question | NytKrawlrx | Handheld Computer Consoles | 7 | 05-31-2008 1:52 PM |
| Burning Question | clarise | CD/DVD Drives and re-writers Technology | 4 | 07-30-2006 9:38 PM |
| Rep question? | JeJe | Community Chat | 37 | 04-18-2006 2:53 AM |
| Not really a bug more a question | Kristof | Bugs And Feedback | 5 | 04-01-2006 11:38 AM |
| Featured Websites | ||||
|