Subscribe

RSS Feed (xml)

What is the difference between a session object and cache object?

Caching :- used to minimize the DB/Server hit and improves
Performance.data is available to all users.Can expire
automatically once duration is specified and untill memory
is available or expires as application restarts.

Session :- used to store data specific to user and remains
untill user loggs off or session expires. usually session
lasts for 20 minutes(configurable)