Users and session ids

From: "C G" <csgcsg39(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Users and session ids
Date: 2003-12-10 09:55:00
Message-ID: Law12-F70zDzC4AGBt600023b8d@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear All,

I wonder if anyone can advise me with this problem.

1. A user logs into the database (through web, webservice, some other piece
of software) - connect(user="joe",passwd="blogs")
2. We generate a random session key which will expire in 1 hour. Put this in
table (user, SessKey, time).
3. Give key to user.
4. User wants to do something else, so passes us the session key.
5. How do we use this session key to log the user into the database, i.e.
how do we get the username and passwd to enable:
connect(user="joe",passwd="blogs").

Many thanks

Colin

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Uwe C. Schroeder 2003-12-10 10:33:27 Re: Users and session ids
Previous Message Joel Rodrigues 2003-12-10 09:15:21 Re: spelling errors in query terms