|
|||||||
| PHP Discussion and technical support for using and deploying PHP based websites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
bump
|
|
#3
|
|||
|
|||
|
Hi there u hv wrong url in ur header in passwordreader.php
PHP Code:
PHP Code:
|
|
#4
|
|||
|
|||
|
that does seam logical. thanks I will try it!
|
|
#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! |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
Nvm close thread. I worked it out
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|