Re: How to build a web application the right way



I struggled with this too. I wanted my customer, the owner of the
webpage, to have the ability to run utilities to maintain his page's
database but prevent anyone from even accidentally running any of the
PHP utility scripts. It was more challenging considering the owner
might run these utilities from anywhere, like a public internet cafe.

I could have used a login and password but that can be picked up
enroute since we were not using https. I finally decided to display a
simple, random puzzle that only the customer knew how to solve. If the
answer he typed matched the answer sitting on the server, a session key
was set and he was free to use any of the utilities until he closed the
browser. Anyone coming along and perhaps reviewing the URL history
(e.g., http://www....com/deleterecord.php?id=101) would get an error
message if they tried to run them.

Write me for details.

Anthony Smith wrote:
I am looking into building a web application and one of the things I
want to do is to make sure the user is logged in. I know I can do this
by checking the session for a user object or something similar. Is
there a best practice for this. Currently what I do is have each page
include a check session include file.

.



Relevant Pages

  • Re: (partial Dc) Anyone notice SCI bowing out?
    ... Customer: Good Morning. ... Welcome to the National Cheese Emporium! ... Owner: What can I do for you, Sir? ...
    (rec.music.gdead)
  • Re: Anyone know why the Alpha market is so so quiet?
    ... Know any Cust's who would do App stacking on Wintel? ... or globally just so you don't explicitly disclose the customer ... reminds me of the Monty Python 'Dead Parrot' skit. ... Owner: ...
    (comp.os.vms)
  • Re: General question on charging for data access
    ... >metric for value received by a customer. ... a HTTP transaction *IS* a session. ... Consider a charge per query or a charge per unit of data. ...
    (comp.lang.php)
  • btw: its an ssl connection
    ... "Benjamin Janecke" wrote: ... Do you think it could be a proxy operated by the user's ISP? ... have to log-in and are then identified by their customer number and some ... other information stored in the session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: User attached to other users session
    ... we don't have a proxy server and the users don't ... have to log-in and are then identified by their customer number and some ... other information stored in the session. ... occurrs if the site is embedded in a frame. ...
    (microsoft.public.dotnet.framework.aspnet)