mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Password on folders
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=11&t=305
Page 1 of 1

Author:  Guest [ 12 Apr 2006, 05:27 ]
Post subject:  Password on folders

Hello

Thanks for a fine script. Let me try to explain my question

I have a site with a login that we can call index1.php. When users enter index1.php they see a link to index2.php (wich is inside another folder on my webpage) but if users see the index2.php path they could just go right in by typing the path in the browser (like www.xxx.com/secrets/index2.php) and i don't want that to happen. I tryed with
Code:
<?php
$slogin_noauthpage = 1;
$slogin_pagetitle = "title";
$slogin_path = "../../../php/";
include_once ($slogin_path . "/slogin_lib.inc.php");
?>
in the head of the index2.php file but then It wants me to login again even if i allready logged in on the index1.php page and followed the link from there. Sounds complex? Its prolly just my explenation who is :)
so i try with alittle ASCII graphics

www.xxx.com/index1.php->www.xxx.com/secrets/index2.php

www.xxx.com/secrets/index2.php directly in browser

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/