www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > PHP

    PHP Discussion and technical support for using and deploying PHP based websites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-21-2009, 08:45 PM
    Nateleduc Nateleduc is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 5
    Help with my php login script!

    Ok so I found a post ,by "pyro" on how to build a login only part of a website,
    http://www.webdeveloper.com/forum/showthread.php?t=9950
    and I tried to implement it into my site. Problem is that I can't get it to work to well. Assuming that it is all set up correctly I get "you must be logged in for that 403 error". Any ideas?

    Here is all of my pages:
    http://www.sendspace.com/file/hdxn4c

    Thanks!
    Reply With Quote
      #2  
    Old 11-22-2009, 01:38 PM
    Nateleduc Nateleduc is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 5
    bump
    Reply With Quote
      #3  
    Old 11-23-2009, 08:28 AM
    ZABI ZABI is offline
    Registered User
     
    Join Date: Mar 2009
    Posts: 21
    Hi there u hv wrong url in ur header in passwordreader.php
    PHP Code:
    header ("Location:[url]]http://localhost/securityvideo.php[/url]");
    change it to
    PHP Code:
    header ("Location:http://localhost/securityvideo.php");
    Reply With Quote
      #4  
    Old 11-23-2009, 09:03 AM
    Nateleduc Nateleduc is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 5
    that does seam logical. thanks I will try it!
    Reply With Quote
      #5  
    Old 11-23-2009, 06:02 PM
    Nateleduc Nateleduc is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 5
    Thanks that worked! Now I have a new problem, I can still bypass the login and go straight to the sercurityvideo.php. I need it to be able to block anyone who hasn't logged in. I think it has something to do with the protect.php and the header I had to put at the head of each page.

    protect.php:

    <?PHP


    $back = "<form><input type='button' value='< Back' onclick='history.back()'></form>";
    $acc_denied = "<h3>Access Denied</h3>".$back; # you could add a link to where users can login here...
    if (!isset($_COOKIE["verified"])) { die($acc_denied); }

    ?>

    header:
    <? include_once("protect.php"); ?>

    I have that header before the <html> bracket. Is this correct?

    Thanks in advance!
    Reply With Quote
      #6  
    Old 11-24-2009, 10:35 AM
    paul454 paul454 is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 1
    If you are after a simple to use login script I can recommend User Session Pro, I use it all the time when I build websites.
    http://www.prophpscripts.com/scripts/user-session-pro
    Reply With Quote
      #7  
    Old 11-24-2009, 11:33 AM
    Nateleduc Nateleduc is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 5
    Nvm close thread. I worked it out
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:58 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.