Re: Anybody used htaccess in a form?




"Owen Rees" <orees@xxxxxxxxxxx> wrote in message
news:uenob4teod5ehsn8vk3ml7jgqc91q38trt@xxxxxxxxxx
On Mon, 1 Sep 2008 16:36:51 +0100, "dE|_"
<spambusters@xxxxxxxxxxxxxxxxxxxx> wrote in
<l_Tuk.137904$6s4.128929@xxxxxxxxxxxxx>:

Thank you, I will keep that noted.

You speak of HTTP authentication only being apt for a single item rather
than a session, when 'big brother' showed me how to set up htaccess on the
server it was actually only for a low budget one-page site. A page holding
a
Flash mp3 player, available to industry/invite only.

It is the other way round.

HTML pages with embedded scripts that are decrypted by the browser
protect only themselves, not any subsequently retrieved resource, unless
the page also has scripts that handle the retrieval and decoding of
other resources or at the very least has some way to pass the
authorization data to subsequently retrieved self decoding pages (and I
don't think you can protect images, video etc like that).

If you have a form where the server side processing of the action takes
authentication data from the form and then, assuming the credentials are
good, just responds with the content of a resource without doing
anything else then it is only that one resource that is protected.

The HTTP protocol authentication is typically implemented in browsers in
such a way that the browser will automatically supply the authorization
data for subsequent requests for resources from the same realm without
troubling the user for a password. The authorization data generally
persists in the browser until the user explicitly deletes it or the
server ceases to accept the credentials because the username or password
have been revoked or changed at the server.

Log-in, listen, send an email, leave. That may be why site-wide sessions
never came in to conversation.

Even in such a simple case you need to authorize multiple requests if
the resources are all protected. With the HTTP protocol mechanisms this
"just works" but only because both browser and server have been
implemented to make it so.

Most web form based authentication systems work by creating some session
authorization token and sending it back to the browser either as a
cookie or embedded in dynamically generated URLs in the returned
resources. The browser sends back the authorization data either in a
cookie or in the URL of the subsequent request without the user having
to do anything and the server then dynamically verifies the
authorization before returning each resource. Most people do not code
this for themselves, there are libraries you can use with a standard web
server or application servers and content management systems with it
already included.

....okay, thanks. You kind of lost me a couple of branches ago, but I really
apreciate your efforts here and the posts have been saved for reference.

-dE|_---


.



Relevant Pages

  • Re: RSS vs. NNTP
    ... I concede that the overhead in getting one's writing onto a news server is much higher than sticking Web pages and attendant RSS files on a Web server, or pouring one's heart into some Roach Motel system like Blogger or LiveJournal. ... new-message is certainly easier than directing my browser to a specific bookmark, logging in, clicking reply, and submitting text. ... perhaps download the resource, ...
    (comp.lang.lisp)
  • Re: nebie - keeping javascript code away from prying eyes
    ... libraries in *.js files on the server in a location that ... If I instruct a browser ... not to cache this loaded page, ... instruction not to hang on to a copy of that resource once they have ...
    (comp.lang.javascript)
  • Re: Prototype, Safari and Japanese problems?
    ... >>> HTTP header for the server response will help in this case. ... the data to be transmitted garbled from your resource. ... > and if I examine the log via Safari ... > heading in the browser. ...
    (comp.lang.javascript)
  • Re: IIS and Mozilla Firebird
    ... Check the NTFS ACLs of the resource (is this on the local drive or UNC ... determine the remote authenticated identity -- if Anonymous ... person running the browser, assuming the client and server use the same set ...
    (microsoft.public.inetserver.iis)
  • IIS Integrated Auth will not work from 9X client
    ... browser it will not work, ... similar fault listed for exchange server but I cannot ... >authorization on my WinXP Pro PC at home. ... >from a Windows XP or 2K computer across the internet I ...
    (microsoft.public.inetserver.iis.security)