Interviews23 answers
Where Session ID Stores in Asp.net?
23 Answers
Session["user"]=Convert.ToString(Name_txt.Text);
Vishnu GhPosted Mar 28, 2018, 9:45 PM EDT
In browser like a key
Mukesh KumarPosted Sep 12, 2017, 6:09 AM EDT
In server
Keerthi VenkatesanPosted May 12, 2016, 11:55 PM EDT
1> InProc mode, which stores session state in memory on the Web server.
2> StateServer mode, which stores session state in a separate process called the ASP.NET state service.
3> SQLServer mode stores session state in a SQL Server database.
You can also store tour session id as Custom mode, which enables you to specify a custom storage provider
Ankit KanojiaPosted Dec 23, 2015, 8:33 AM EST
Session Id store on server side.
In proc - store in application domain
Out Proc - store in Sql server database
maulik patelPosted Nov 2, 2015, 10:12 PM EST
If you are using "InProc" mode of session handling, then SessionID id can be stored in 2 places based on the configuration in "Web.Config".
1) <sessionState mode="InProc" cookieless="true"> </sessionState>
In the above config line, we set "cookieless=true", at this case the session id will be stored in URL itself. So the user can easily view the session id, which is vulnerable one.
Ex: http://localhost:57913/(S(5a1v1hngmwbfn54wl5jdlmp3))/WebForm1.aspx
2) <sessionState mode="InProc" cookieless="false"> </sessionState>
As per the above line, the session id will be stored in Cookie with the name "ASP.NET_SessionId".
Francis SusaimichaelPosted Oct 22, 2015, 4:09 AM EDT
It could be in 3 forms
InProc,
State Server
SQL Server
Click here to See more http://csharp-video-tutorials.blogspot.com/2012/12/inporc-aspnet-session-state-mode.html
Praveen DhatrikaPosted Oct 16, 2015, 6:29 AM EDT
Session id stored in different location as per we select mode in webconfig
1)InProc -it is stored in client machine cookies
2)State server -it is stored Seperate server for allotted session
3)sqlserver-it is stored sql server
Vamsi KrishnaPosted Oct 7, 2015, 3:53 AM EDT
In Asp.Net sessions can strore in 3 places its regularly called as session modes.
1. In-Proc : Stores at cookies
2. Out-Proc: Stores at State server
3. InOut-Proc: Stores at Sql server
In Asp.Net sessions are by default in In-Proc mode that means Sessions are stores at Cookies.
Narasimha Reddy ChennupalliPosted Jun 25, 2015, 11:41 AM EDT
Sessions are identified by a unique identifier that can be read by using the SessionID property.
It depends upon session mode selection:
InProc mode - Cookie.
OutProcess state server mode - Sate Server
SQLServer mode - Database
Custom mode - Custom provider
By default, SessionID values are stored in a cookie. However, you can also configure the application to store SessionID values in the URL for a "cookieless" session.
Sujeet SumanPosted Jun 18, 2015, 12:10 AM EDT
Hello Pramod,
Session ID is stored either in Cookie or in URL. This is depend on the cookieless property you have mention in
for this setting Session ID store appear in URL.
it will store in cookie. And by default it will store in cookie.
for detailing please refere
https://msdn.microsoft.com/en-us/library/h6bb9cz9%28v=vs.71%29.aspx
Vaibhav SalwePosted May 30, 2015, 3:17 AM EDT
cookies
Kiranteja JallepalliPosted May 25, 2015, 9:40 AM EDT
By Default Session Id is Stored in Client m/c in the form of text file.It is Called Cookie.
If session is Cookie less the that is append to Url .
Posted May 8, 2015, 4:00 AM EDT
Browser cookies
Debendra DashPosted Apr 18, 2015, 10:43 PM EDT
SP.NET by default uses a cookie; but can be configured to be "cookieless" if you really need it; which instead stores your Session ID in the URL itself. This typically has several disadvantages; such as maintence of links become difficult, people bookmarking URLs with expired session IDs (so you need to handle expired session IDs, etc). Most modern phones, even non-smart phones, support cookies. Older phones may not. Whether you need to support cookieless sessions is up to you.
Posted Apr 15, 2015, 7:12 PM EDT
In Cookies. If it is cookies less means it will come in the URL it self.
BhakthaprahladaReddy NPosted Apr 13, 2015, 10:19 PM EDT
In Cookies. If it is cookies less means it will come in the URL it self.
BhakthaprahladaReddy NPosted Apr 13, 2015, 10:19 PM EDT
http://dotnet-munesh.blogspot.in/2014/02/session-in-dot-net.html
Munesh SharmaPosted Mar 29, 2015, 8:10 PM EDT
1)Inprocess(Inproc)-when cookieless false it is stored in client machine using cookie.If it false,it will maintain the session id throw the url
2)Outprocess-State server-In this mode stored on the state server
Sqlserver mode-During this the session storrage happens on sql server
Among all sqlserver mode is best .
SathiswaranPosted Mar 14, 2015, 10:23 AM EDT
Session id store in different location as per session mode selected.
1 For InProc mode it store in cookie.
2 Fro state server it store in sate server
3 For Database it store in db
Navin KumarPosted Feb 27, 2015, 5:12 AM EST
Session Data is always stored in Server(May be store in sqlserver or Out of Proc depend upon your choice ) and Server always generate a Session Id for each session this id by default store in user's memory in form of Cookie.This Cookie is only set of Characters like 'lin8py55t21z5v65vlm25s55' . If cookie are disabled then session id will attach with Url.
Url without Cookie: http://www.Indiaonline.com/page.aspx
Url with Cookie : http://www.Indiaonline.com/(S(lin8py55t21z5v65vlm25s55))/page.aspx
This Method is not good because some user can save this url as Bookmarks.Then it will generate problems
Pankaj Kumar ChoudharyPosted Feb 19, 2015, 9:46 PM EST
0 Points
8 Posts
Re: cookieless="false" in sessionState
Sep 20, 2006 09:37 PM|LINK
If your application using sessions definitely it needs a sessionid. so that it can find and retrieve the session data in the store (and save to it).
SessionID property :
1. Its used to uniquely identify a browser with session data on the server.
2. The SessionID value is randomly generated by ASP.NET and stored in
a non-expiring session cookie in the browser.
3 .The SessionID value is then sent in a cookie with each request to the ASP.NET
application.
Default Value of Session Cookieless = false.
By default this id is stored on a cookie.
If you set cookieless=true then it will store the id in the url.
(For ex) :
In web.config if you write this code
your URL looks like
http://ABC.com/(session ID here)/default.aspx
saravanagopi sPosted Feb 18, 2015, 9:38 PM EST
Session ID stores in cookies. If Cookies is disabled than attach with url.
Pramod VermaPosted Feb 5, 2015, 5:12 AM EST













