I'm thinking about what it would take to implement a single-sign on (an
app portal if you will) that would let users transparently access web
apps developed under a variety of environments including php, perl, and
java (j2ee).

As I understand it, normally you'd store something in a session variable
server-side, which your code can check.  Behind the scenes, the
processor uses cookies or some other mechanism for connecting a
particular session and set of session variables with the client.

With that in mind, I have an idea to work something out in the following
fashion:
1.  Server-side stores some information in a file or a database that
contains data across a session
2.  Set a client-side cookie using some sort of cryptographic hash
including the id of the server-side data record, the ip address of the
client, and some other stuff all hashed with some cryptographic
function.  This cookie would be set to expire when the browser closed
(session-only cookie).
3.  When a page is accessed, it retrieves this cookie, uses it to grab
the appropriate session data from the store and puts it into the current
environment's session ($_SESSION, or equivalent).  From then on
environment (php, java, etc) would handle the session stuff in it's own
way.

My questions for all the gurus are thus:  What kinds of information
should be hashed into the client cookie, and what method should I use to
hash it?  What method should I use to associate the server-side info
with the client cookie?  How should I handle expiring sessions
server-side?  Am I missing anything vital here?  Given https and so
forth, would this be reasonably secure from spooking attempts?

thanks.

Michael

-- 
Michael Torrie <[EMAIL PROTECTED]>

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to