NYCPHP Meetup

NYPHP.org

[nycphp-talk] single entry point

Analysis & Solutions danielc at analysisandsolutions.com
Tue Jul 30 10:59:18 EDT 2002


Hi Jim:

On Tue, Jul 30, 2002 at 10:25:50AM -0400, Jim Hendricks wrote:
> faced with ASP when ASP was first introduced I made the design snafu of
> developing my first small page as a single page.  Login, login validation,
> form entry, form validation and submission, and submission response all
> rolled up into 1 .asp file.

Yeah, having one page for everything is tough to manage.  I like
separating pages by purpose.  Though, a purpose may have several steps
that I'll integrate into a given script using switch statements.


> I think one of the things that draws me to this solution is the ease of
> security checks and forcing a specific modality ( ie. stopping the browsers
> back button & ensuring a specific work flow where required ).

As Oktay mentioned, having one page vs many doesn't make a real difference
for securty.  Use an include file that does the login validation at the
top of each file which needs it.

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409



More information about the talk mailing list