SessionState - type of sessionstate and when and how to use
it
Answer Posted / alb.shah
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
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:
<sessionState
timeout="40"
/>
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Define web services in asp.net.
How you can return View from ASP.NET Web API method?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
What is the parent class of all the web server control?
What is base class of button control in .net?
What does asp stand for in asp.net?
What are the different web pages?
Explain different authentication modes in asp.net?
what are the security certificates used in webservices?
What is session management in web application?
Differences between “dataset” and “datareader”.
Who generates session id?
Why mvc is faster than asp.net? : Asp.Net MVC
How can you make sure that web api returns json data only?
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "