Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Session State Mode Comparison

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ross Culver - 21 Aug 2007 16:37 GMT
Is one session state mode better than another?

Ross
Patrice - 21 Aug 2007 16:42 GMT
As anything else this is always a trade off. I would suggest to use inproc
until you know why you would want another one (load balancing, surviving to
restarts etc...).

--
Patrice

> Is one session state mode better than another?
>
> Ross
Steve - 21 Aug 2007 17:01 GMT
InProc is best when:
    1) You don't have a lot of simultaneous users (1000+)
    2) You don't have a server farm
    3) You don't have a lot of data to store per user

Out of Proc (StateServer) is next best when you exceed the above
limitations, but:
    1) Your "session stated" data is not that important to need SQL
persistence.
    2) You don't mind losing the data if the server restarts
    3) You need faster performance than SQL Server gives you
   

Out of Proc (SQL) is best choice for out of Proc because:
    1) SQL Persistence gives you reliable storage

Keep in mind that the performance goes from (best to worst)
InProc->StateServer->SQL

Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA

> Is one session state mode better than another?
>
> Ross
Peter Bromberg [C# MVP] - 22 Aug 2007 02:38 GMT
http://www.eggheadcafe.com/articles/20021016.asp
Signature

Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Is one session state mode better than another?
>
> Ross
Ross Culver - 22 Aug 2007 04:47 GMT
Peter,

Thanks for the links.  Even after placing the <Serializable()> tag in front
of every 'Partial Class' statements on every aspx page in my site, I still
get the standard Unable to serialize the session state' error message when
loading ASP Configuration Administrator.  I've also already run the
aspnet_regsql.exe, InstallSqlState.sql and aspnet_regiis.

What else do I need to do?

Ross

> http://www.eggheadcafe.com/articles/20021016.asp
>
>> Is one session state mode better than another?
>>
>> Ross

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.