ASP Forum
cookies or session variables
change | Posted 8:03am 15. November 2007 Server Time |

what ia the diff between session variables and cookies and honestly which is better to use when, how and why
WizzKidd | Posted 5:32am 6. December 2007 Server Time |

A Session Variable stores values into memory while a session is open (eg. in a typical case, a session ends when the browser closes.)

A Cookie stores values to a file on the local file system and uses an "expires" attribute to tell the cookie when to "die", so if the expiry date is 365 days ahead, the cookie variable can be called for the whole year without being forgotten.

- WizzKidd


Reply to Post cookies or session variables



Back to Forum Page