Re: [INTERFACES] WEB-interface - Mailing list pgsql-interfaces

From Michael Robinson
Subject Re: [INTERFACES] WEB-interface
Date
Msg-id 199904150536.NAA00398@netrinsics.com
Whole thread Raw
In response to WEB-interface  ("Sergei Chernev" <ser@nsu.ru>)
List pgsql-interfaces
"Sergei Chernev" <ser@nsu.ru> writes:
>But if I want to create subform, I have to know username/password again.
>Now, I'm solving this problem transmitting <input type="hidden"> back
>to client - but this method is wrong.

Make an MD5 checksum of the username, password, and current time.  Send the
MD5 checksum in a hidden field (or use a cookie).  Keep a server-side cache
of the currently valid checksums (expire the old ones periodically), and
check the incoming checksum against the cache for each request.

    -Michael Robinson


pgsql-interfaces by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [INTERFACES] WEB-interface
Next
From: Constantin Teodorescu
Date:
Subject: JDBC getUpdateCount() is working ?