|
Posted by John on 10/22/95 11:34
Simon Dean wrote:
> And while Im at it... should I be using PHP's built in sessions, or use
> my own functions that I've chobbled together from various sources and
> takes advantage of also validating IP Addresses???
> I don't like to use things just because they're there.
I know what you mean, but if it's there and it's working well, then use it.
PHP sessions do work very well - except for one problem I found.
MS IE kept using a different session ID for every page it requested !
I solved this by creating my own session ID and storing it in a cookie,
so I could get it back and force the same session ID each time.
Of course, now you need the user to have cookies enabled.
So I now use session data for 'this visit' stuff, and cookie data for
longer term 'user info' stuff.
Let me know if you want any code...
John.
Navigation:
[Reply to this message]
|