SessionState - type of sessionstate and when and how to use
it
Answer / 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 |
Which is the namespace used to write error message in event Log File?
How do cookies work? Give an example of their abuse.
What are the event handlers that can be included in the Global.asax file?
What type of code (server or client) is found in a Code-Behind class?
Explain Factory pattern?
What is the difference between Postback and Ispostback Property?
7 Answers Atrocity Apps Technologies, DC Infotech, HCL, Maples, Visual Soft,
What is viewstate?
6 Answers Abacus, Microsoft, Sopra,
What is Assert Method ?
Explain the concept of event bubbling in ASP.NET?
0 Answers Sans Pareil IT Services,
what are the oops concepts are used in your project?
1 Answers AppShark, IBM, Kotak,
1. Briefly describe your ideal job?
1 Answers Swatz Oils, Swetz Oil,
What is ashx file in asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)