In which place it's going to store session data

Posted by Kk86kiran under ASP.NET on 4/16/2012 | Points: 10 | Views : 1266 | Status : [Member] | Replies : 9
Hi,

In sessions we have 3 modes but my question is in which place the session data stored means if i used inproc mode for data. the session data will be stored in exact which location and also for others modes(state server & sql server) can you any one give sample code or example. How can i check the storage location of session data?

k.m.j.kiran


Responses

Posted by: Sabarimahesh on: 4/16/2012 [Member] Bronze | Points: 25

Up
0
Down
In which place it's going to store session data

i can't Get u

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kk86kiran on: 4/16/2012 [Member] Starter | Points: 25

Up
0
Down
session data will be stored in which place

k.m.j.kiran

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/16/2012 [Member] Bronze | Points: 25

Up
0
Down
session data will be stored in appdomain aspnet_wp.exe when
session sate mode is inproc, for stateserver it will be
stored in windows service aspnet_state.exe, for sqlserver
it will be stored in the database persistsqlstate.exe

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/16/2012 [Member] Bronze | Points: 25

Up
0
Down
Session data is stored at server side in case of
HttpSession. Server creates a session object and stores at
server side and communicates session id to client for
further communication to be statefull. session id will be
sent to server along with further requests from the client.
In case of Cookies client maintains the session information
and sends the cookie object to server for each request. The
cookie object will be created by server but maintained by
client.


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kk86kiran on: 4/16/2012 [Member] Starter | Points: 25

Up
0
Down
i want exact location

k.m.j.kiran

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/16/2012 [Member] Bronze | Points: 25

Up
0
Down
Kiran


Refer this

You may Get idea

http://forums.asp.net/t/1275669.aspx/1

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: dhirenkaunar-15094 on: 4/16/2012 [Member] Starter | Points: 25

Up
0
Down
Kiran ,

Please find the below answer :

InProc mode, which stores session state in memory on the Web server. This is the default.

StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

Custom mode, which enables you to specify a custom storage provider.

Off mode, which disables session state.

For more info you can visit the below link :
http://msdn.microsoft.com/en-us/library/ms178586.aspx

Mark as a answer if it answer your question.

Thanks & Rgards,
Dhiren Kumar Kaunar

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kk86kiran on: 4/16/2012 [Member] Starter | Points: 25

Up
0
Down
Still i didnt get exact answer becoz i asked for location or path but all of you explained about sessions. I know about sessions but i want path of the sessions in different modes.

k.m.j.kiran

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
InProc - stored in memory on web server
This is the default setting.

Pros: least overhead, fastest performance
Cons: breaks web clusters, restarting IIS loses sessions
StateServer - managed by a remote service (aspnet_state)
HTTP protocol over TCP port.

Pros: reasonably fast, works with clusters
Cons: clear text, no authentication, overflows...
SQLServer - stored in SQL Server DB tables
Uses normal ODBC connection.

Pros: reliable, scalable
Cons: relatively slow, much overhead


if it help you mark it as resolved......

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Kk86kiran, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response