Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using "InProc" Session State, and i set
C#
Session["DataTable"] = dt

Then pls tell me, where Session stores your value. at server or at client and where?

Please tell me.
Posted
Updated 26-Dec-11 1:20am
v2

Session variables are stored at the Server. Cookies are stored at the Client.
 
Share this answer
 
Comments
[no name] 26-Dec-11 6:36am    
Where at Server, and How to connect with browser.
Session is also same as Cookie, pls tell me in detail.
OriginalGriff 26-Dec-11 6:43am    
Where in the sense of Session variables is irrelevant: they could be in memory, they could be in a database. As far as your software is concerned, they are just in a List. You just access them in teh server code, and pass the info to the client by the usual means.
Cookies are stored wherever the particular browser the user is connecting via wants to store them. There is no absolute location.
koolprasad2003 26-Dec-11 7:19am    
Yes. it's server side statemanagment technique. 5.
Uday P.Singh 26-Dec-11 9:02am    
5ed
Cookies saves at client side.
And by default, session state values and information are stored in memory within the ASP.NET process. One alternative is to store session data in a state server, which keeps session data in a separate process and retains it if the ASP.NET application is shut down and restarted. Another alternative is to store session data in a SQL Server database, where it can be shared by multiple Web servers.
for more follow this :
http://msdn.microsoft.com/en-us/library/ms178587.aspx[^]
Hope this will help you.
Don't forget to mark as answer if it helps. :)
 
Share this answer
 
Comments
Uday P.Singh 26-Dec-11 9:02am    
5ed
RaviRanjanKr 27-Dec-11 16:53pm    
5+
C#
<a href="http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx">http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx" target="_blank" title="New Window">^</a>]


follow this link u get all answer...
 
Share this answer
 
v2
Comments
RaviRanjanKr 26-Dec-11 7:39am    
[Edited]unchecked Treat my content as plain text, not as HTML[/Edited]
Dear Sr " Ithink that the Solution is The Session variables are stored at the Server and you use Application state, Session state .
and Cookies are stored at the Client.

with my regardes
 
Share this answer
 
There are two types of state managment technique
1. client side
2. server side

1. Server side state managment technique are more safe than client side technique
2. server side includes : Application state, Session state etc.
3. Client side includes : Query String, Cookies, hidden fields, viewstate etc.

for more detail check, StateManagement Suggestions : A Beginner's View[^]
 
Share this answer
 
v2
Session variables are stored at the Server.:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900