DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sat, 18 Aug 2007 21:26:00 +0200,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Britt
          2    Juan T. Llibre


question about Sessionsate   
Hi,

I read that SessionState is on by default.
I also read that if it's not required, it must be better off (because of 
resources)

My question is: i don't use session variables (like e.g. 
Session("mysessionvar")). Is that the only way to use session state, or 
there are other ways?

Thanks
Britt
Date:Sat, 18 Aug 2007 21:26:00 +0200   Author:  

Re: question about Sessionsate   
re:
!> My question is: i don't use session variables (like e.g. Session("mysessionvar")).
!> Is that the only way to use session state, or there are other ways?

The purpose of keeping track of session state is to enable the use of session variables.

If you don't need to set session variables, you can save resources by disabling it.

The problem is that, if you do that, a new Session.SessionID will be created
every time a single page is refreshed in one browser session.

To avoid that, use url munging, by setting "cookieless" to "true" in web.config.

<sessionState mode="Off" cookieless="true" timeout="20" />

If you don't need to track someone's session by using Session.SessionID,
though, you can disregard setting "cookieless" to "true" in web.config.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Britt"  wrote in message news:%23FOcc2c4HHA.3916@TK2MSFTNGP02.phx.gbl...

> Hi,
>
> I read that SessionState is on by default.
> I also read that if it's not required, it must be better off (because of resources)
>
> My question is: i don't use session variables (like e.g. Session("mysessionvar")). Is that the only way to use session 
> state, or there are other ways?
>
> Thanks
> Britt
> 
Date:Sat, 18 Aug 2007 16:19:18 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us