473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to enable session state

In an ASP.Net using framework v2 what is required to enable session
state to be setup for the web code and the database?
Jul 11 '08 #1
2 2101
Hi

Got little confused. Asp.net have session enabled by default...
are you referring the implementation of state server?

Checkout this link

http://msdn.microsoft.com/en-us/library/ms972429.aspx

Best of luck

-----------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
Jul 11 '08 #2
re:
!Asp.net have session enabled by default...

Yes, session is enabled by default in "In Process" mode ( "Inproc" ).

Here's the default configuration :

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
stateNetworkTim eout="10"
sqlConnectionSt ring="data source=127.0.0. 1;Integrated Security=SSPI"
sqlCommandTimeo ut="30"
customProvider= ""
cookieless="Use Cookies"
cookieName="ASP .NET_SessionId"
timeout="20"
allowCustomSqlD atabase="false"
regenerateExpir edSessionId="tr ue"
partitionResolv erType=""
useHostingIdent ity="true">
<providers>
<clear />
</providers>
</sessionState>

If you don't want to use sessions, configure mode="Off"

<sessionState mode="Off">

Btw, the link you provided is for the Beta of the .Net Framework.
The reference in the article to "config.web " is a dead giveaway... :-)

Here's a more recent reference :
http://msdn.microsoft.com/en-us/libr...z9(VS.80).aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Munna" <mu******@gmail .comwrote in message
news:70******** *************** ***********@d45 g2000hsc.google groups.com...
Hi

Got little confused. Asp.net have session enabled by default...
are you referring the implementation of state server?

Checkout this link

http://msdn.microsoft.com/en-us/library/ms972429.aspx

Best of luck

-----------
Munna

Jul 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2417
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of the differences, e.g that every object you store in SQLSession state have to be serializable, but other differences are very unfortunate.
10
3517
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout or will a postback also do it? This is important as we have a few pages that a user
0
1318
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back door page with a login that would allow me to remotely enable and disable the site. The site is in a web farm. The site has a previously posted message to users when the site will go down. How can this be done safely and efficiently in a web farm...
0
870
by: BubbaThree | last post by:
I started having these problems Monday, I believe but I am not sure that our corporate office deployed some security patches??? First of all, when a go to my Web Application (written in ASP.NET 7.1.3088 on .Net framework 1.1.4322 sp1) the IE address bar has http://localhost/Projects/(zpthtrn2armpusfzos2fnh45)/Default.aspx ; the stuff in parenthesis was not there before Monday., The stuff in parenthesis changes each time I start a new...
2
5237
by: Ken Varn | last post by:
I have tried to enable session state in my tag, but it appears to not be working. When my web service is called, the session state is not preserved. The Web Service is being called from a Windows Form control assembly. Is there anything else I need to do to have session state work in my web service? -- ----------------------------------- Ken Varn Senior Software Engineer
11
3662
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
5
7285
by: =?Utf-8?B?QWxla3MgS2xleW4=?= | last post by:
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I start application I get error in line session("aa")="bb" Error tells that I need to enable session state. I found in @page directive option enableSessionState which has values false, readonly and true. I put this value true, however it did not help. it is possible to put this value into web.config, but i did not find where. Also i need to add appropriate module...
0
1247
by: kpg* | last post by:
Hi all, I have a web service with two similar methods, one for production and one for testing. On the test method I enable session state so I can dump out debug files named with the session id and cross reference them a log file. It also keeps the files unique to each user session.
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.