What is the use of sessionstate tag in the web.config file?

Answers were Sorted based on User's Feedback

Answer / p.ramakrishna

Configuring session state: Session state features can be
configured via the <sessionState> section in a web.config
file. To double the default timeout of 20 minutes, you can
add the following to the web.config file of an application:

Is This Answer Correct ?    7 Yes 0 No

Answer / eduardo belmonte

SessionState tag is used to define session attributes.
One very important is Mode which can have values: "state
server", "SqlServer", "InProc"; depending how you want to
preserve session state.
"State server" is used if you want the state to be
preserved in other server.
"SqlServer" is used if you want the state to be preserved
on a SQL database.
"InProc" is used if you want the state to be preserved in
the same process where the asp.net page is running.

Other attributes that are also included for the
SessionState tag are: ConnectionString,
SqLConnectionString, userId, password, cookiless, tiemout.

if the session state is going to be preserved in other
server, or can be ""SqlServer" if session state is going to
be preserved in a SQL database

Is This Answer Correct ?    7 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.

1 Answers  

How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,

To make Cache item dependent on a file,directory or other cached item ,you should create an instance of which clause?

1 Answers  

Types of optimization and name a few ?

3 Answers   Accenture,

What is the method used to load generated dataset with data on the DataAdapter control ?

3 Answers  

In SP has contains 10 query,By Using Dataset Object I need to fetch 8th query of records? How?

5 Answers  

• What are HttpHandlers? • What are HttpModules?

2 Answers  

Types of caching. How to implement caching?

2 Answers   Microsoft,

Is it possible to perform data validations in the database?

1 Answers   Quest,

About Windows/Forms Authentication

1 Answers  

Difference between .NET and previous version?

1 Answers   Microsoft,

when we write the html code with runat = server it works like a server control than why we use the server control?

1 Answers