Session var alternatives / best practices

  • Thread starter Thread starter Weston Weems
  • Start date Start date
W

Weston Weems

Hello...

I've got a asp.net site that involves pulling a few
records out of a database at which point it creates an
object.

I'd like a way to persist this data across pages, but its
a little more than I'd like to stick in my view state.

I was curious if it was advisable to use session vars for
this... I'd just use Application, but seeing as it doesnt
automatically expire items out of that collection, its not
very viable.

I'd like to make changes to this object persisted across
postbacks, then ultimately persist back to database.

Thanks
 
Session is fine in ASP.NET. You can also set up your own persistance
methodology with static (Shared in VB.NET) variables.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top