473,426 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

where are session variables stored on client

I was under the impression that when I create session variables such as
session("myVar1"), they get stored on the client in a cookie. When I look
in my Temporary Internet Files directory for the cookie, I don't see
anything. Am I looking in the right place? Here are my session state
settings, they are default:
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a
particular session.
If cookies are not available, a session can be tracked by adding a session
identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

--
_____
DC G
Nov 19 '05 #1
7 7661
Session variables are stored on the server. What is stored in a cookie is
the session id. It is used to restore the session variables on the server
when client's postback arrives.

Eliyahu

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
I was under the impression that when I create session variables such as
session("myVar1"), they get stored on the client in a cookie. When I look
in my Temporary Internet Files directory for the cookie, I don't see
anything. Am I looking in the right place? Here are my session state
settings, they are default:
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a
particular session.
If cookies are not available, a session can be tracked by adding a session
identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

--
_____
DC G

Nov 19 '05 #2
I believe the only thing stored on the client will be your session ID in a
cookie. The actual data is on the server. The server links the data to the
client via that id.

If you set cookieless="true" in web.config, your session ID will be embedded
in the URL.

Not sure, but wouldn't the session cookie be stored C:\Documents and
Settings\<user>\Cookies?

Greg

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
I was under the impression that when I create session variables such as
session("myVar1"), they get stored on the client in a cookie. When I look
in my Temporary Internet Files directory for the cookie, I don't see
anything. Am I looking in the right place? Here are my session state
settings, they are default:
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a
particular session.
If cookies are not available, a session can be tracked by adding a session
identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

--
_____
DC G

Nov 19 '05 #3
>Not sure, but wouldn't the session cookie be stored C:\Documents and Settings\<user>\Cookies?

I believe you'll only find persistent cookies on the hard drive. 'session'
cookies are only kept around in memory (and I'm using session in a generic
sense).

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #4
Is there anyway I can look at these in-memory session cookies?

_____
DC G

"Scott Allen" <sc***@nospam.OdeToCode.com> wrote in message
news:28*********************@msnews.microsoft.com. ..
Not sure, but wouldn't the session cookie be stored C:\Documents and
Settings\<user>\Cookies?
I believe you'll only find persistent cookies on the hard drive. 'session'
cookies are only kept around in memory (and I'm using session in a generic
sense).

--
Scott
http://www.OdeToCode.com/blogs/scott/

Nov 19 '05 #5
Yes, one easy tool is ieHttpHeaders:

http://www.blunck.info/iehttpheaders.html

This will show any Set-Cookie headers coming from the server and any cookies
the browser sends along to the server with a request. HTH!

--
Scott
http://www.OdeToCode.com/blogs/scott/
Is there anyway I can look at these in-memory session cookies?

_____
DC G

Nov 19 '05 #6
WJ

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Change the "Inproc" to "SQLServer" and click here to install SQL/State
Server http://support.microsoft.com/kb/311209

The above link shows you how to install Persitence State for Asp.Net
application. Once done, logon to your web site, do a few things. Then
finally, use SQL/Analyzer to view your Asp.Net states (the database name is
"ASPSTATE", I believe or you want to view the install script to be sure what
it is called).

John
Nov 19 '05 #7
Scott Allen wrote:
Yes, one easy tool is ieHttpHeaders:

http://www.blunck.info/iehttpheaders.html

This will show any Set-Cookie headers coming from the server and any
cookies the browser sends along to the server with a request. HTH!


Actually, any old HTTP proxy will do. Fiddler is good & free:
www.fiddlertool.com.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: StinkFinger | last post by:
Hello all, I am working on some simple pages that pass non-critical information (i.e. no passwords, usernames, etc.) to and from different pages. Currently, I am using FORMs w/the POST method. I...
13
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 ...
5
by: Yossi | last post by:
I want to set the asp session id path property. how can I do that? I mean, asp session id is stored in a cookie and like any other cookie it should have properties (or attributes), how can I...
2
by: What-a-Tool | last post by:
I am using a couple of session variables in my site. From what I can figure out, session information is stored on the users computer in a cookie - If the user has cookies disabled, do session...
3
by: Giles | last post by:
Example: session("IsLoggedIn")=false Can this be changed on the user's machine by editing the cookie directly? (Please tell me it can't!). If so, will ASP know it has been tampered with, and...
4
by: Rahul Chatterjee | last post by:
Hello All I have 2 websites both using different style sheets (.css). The stylesheets are stored in a session variable and get set at the time the site gets invoked. What is happening is...
3
by: Jessica Loriena | last post by:
I'm trying to write a simple "register form / validate and store in database / show welcome screen" application with ASP.Net. With conventional ASP, I used Session variables and it went something...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
2
by: DLN | last post by:
Hello all, I apologize for the naivety of this question, but I'm wondering whether session variables can ever be modified (somehow) by a client without having to go through code that I write. ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.