i got that doubt too than i checked the manual: http://www.php.net/session seems like it can cache, but the default is no cache
using http://br.php.net/manual/en/function.session-cache-limiter.php , you can tune it (dont know how good it would do it)
anyway... i use mysql heap table (it stays on ram) for storing session and anything else that i need to access fast
Thiago Silva wrote:
Hello all, I was wondering... Why session data are stored on files rather than in on memory?
People have been telling that acessing session data can be slow, and I need some kind of (fast) caching mechanism to store application data. After some search I found some php code that handles the session with a mysql database. But still, I don't know how fast (or slow) this can be.
In general, I will need to cache data (some objects...sometimes kindda big) on, basically, every request and the fact that session data are stored in files scares me a bit.
And one more thing...php5 has the same php4 session mechanism??
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php