session vs database

vbnick

New member
Joined
Jun 19, 2006
Messages
1
Programming Experience
5-10
I am a developer for a very big B2B application. I would like to have some ideas from you people about session management. What I would like to ask you that i am making a shopping basket and i would like to save what it contains. When considering perfonmance, which one is better, sessions, cookies, or database?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,383
Location
Norway
Programming Experience
10+
memory (server session) is faster than file storage (client cookie, server db), but memory is very expensive to use and possibly impossible to serve with the traffic at hand.
 
Top Bottom