in reply to Re: Re: Using Sessions between perl and php.
in thread Using Sessions between perl and php.
I was thinking of having a table that goes like:
And then it is just a matter of doing a 'SELECT var_name, value FROM session where session_id = ?'session_id var_name value ---------------------------------------- asdijhufio4 user_id 1 asdijhufio4 state 55 fddffff0012 new_user 1 dfdfgeret44 username 'bob'
I would think the performance of this would be a lot better than the way you serialize your data.
Update:It is possible to store the hash in a MySQL blob using \0 as a seperator. This may work better if you don't want to have multiple rows per session.
Hope this helps...
gav^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(maverick) Re 4: Using Sessions between perl and php.
by maverick (Curate) on Jan 21, 2002 at 02:54 UTC | |
by Aristotle (Chancellor) on Jan 21, 2002 at 03:49 UTC | |
by jryan (Vicar) on Jan 21, 2002 at 06:31 UTC |