|
Re: Re: [phpwiki-checkins] CVS: phpwiki/lib WikiUserNew.php,NONE,1.1: msg#00064web.wiki.phpwiki.talk
Reini Urban wrote: Joby Walker schrieb: The wiki that I manage is quite critical and contains a lot of data we don't want to fall into hostile hands... > If I store sensitive data in cookies I do a symeteric encryption with a > secret key at the host, generated at install time. but it's true that certain pref data shouldn't be stored in cookies: passwd (for security), email (. just the basic prefs for username and layout. I still wouldn't do it this way. I would: Cookie: Contents = a 64 character hex number [md5(random data1) . md5(random data2)] SSL = configurable yes/no Expire = configurable Server Session Validation: Cookie Content ID Browser Used IP# Expiration Time If the cookie points to a valid session then the user is logged into as the saved (as a part of the session) username and given the associated saved preferences. This will allow for a more secure "auto-login" process -- if a cookie is compromised then it will contain no hard data (encrypted or not) with a fairly limited vulnerability window. And once the session attached to that cookie contents has expired -- the data is completely useless. And allows admins to dynamically set the expiration time of sessions (from never to very short times) even after the cookie has been set on the user's computer.
I absolutely agree. My quibble is with an implimentation detail not the general architecture. These classes will make things MUCH easier. jbw ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Configuration of this list: Reply-To:, acceptance: 00064, Bishop |
|---|---|
| Next by Date: | Re: Configuration of this list: Reply-To:, acceptance: 00064, Carsten Klapp |
| Previous by Thread: | Re: Re: [phpwiki-checkins] CVS: phpwiki/lib WikiUserNew.php,NONE,1.1i: 00064, Bishop |
| Next by Thread: | Re: [phpwiki-checkins] CVS: phpwiki/lib WikiUserNew.php,NONE,1.1: 00064, Carsten Klapp |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |