Re: session on multiple files

From: Date: Tue, 22 Apr 2003 07:19:59 +0000
Subject: Re: session on multiple files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144779@lists.php.net to get a copy of this message
On Tuesday 22 April 2003 09:19, Steve wrote: > I have a script that mandates authentication, then after the user is > allowed to view the file. I can verify that the file is not viewable > unless the user is authenticated by going straight to the file w/o > authenticating. However, I need the script to mandate authentication for > several other files as well in addition to the one already in the script ( > inner.sanctum.php ). The script can be viewed here: > http://probsd.org/login.txt Including your code inline (not as attachment) with your post would ensure more people actually look at your code. Most people are too paranoid and too lazy to be clicking on unknown links. > Could someone point me in the right direction in how to encapsulate a > session around multiple files please? The standard way is to move all files that need protecting to a directory outside of your webroot and have them served through your authentication script. Further details can be found it the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Hello. Just walk along and try NOT to think about your INTESTINES being almost FORTY YARDS LONG!! */

« previous php.general (#144779) next »