[FX.php List] [OFF] Theory of managing sessions
Jonathan Schwartz
jschwartz at exit445.com
Sat Nov 24 10:08:10 MST 2007
ggt,
I spent two days staring at the code you suggested below...and I have
to admit I can't make head nor tails of it.
Can you shed some light?
Thx
Jonathan
At 11:25 PM +0100 11/20/07, Gjermund Gusland Thorsen wrote:
>Tihi, I always did this in a different way, then you guys it seems.
>
>I always make my own key as array inside $_SESSION['']
>
>example
>
>$_SESSION[$pKey]['currentUser'] = $r['data'][key( $r['data'] )]['userID'][0];
>
>and when I want to kill the session I use simple stuff like:
>
>$_SESSION[$pKey]['currentUser'] = '';
>
>or if I will like I want to be brutal:
>
>$_SESSION[$pKey] = '';
>
--
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-381-1852
More information about the FX.php_List
mailing list