473,749 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="tru e".
-->
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" timeout="20"/>

--
_____
DC G
Nov 19 '05 #1
7 7676
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******@visio ntechnology.net > wrote in message
news:u%******** ********@tk2msf tngp13.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="tru e".
-->
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" 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="tru e" 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******@visio ntechnology.net > wrote in message
news:u%******** ********@tk2msf tngp13.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="tru e".
-->
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" 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.O deToCode.com> wrote in message
news:28******** *************@m snews.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******@visio ntechnology.net > wrote in message
news:u%******** ********@tk2msf tngp13.phx.gbl. ..
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se" 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
9161
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 am not using any cookies or anything stored on the client end, simply passing data. Should I read up on SESSIONS and use those instead of POST ? What are the benefits/drawbacks by switching to SESSIONS ?
13
23334
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 The problem I am having is that each time I reload the same PHP page, I get
5
1974
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 control it? Yossi.
2
7443
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 variables still work - just without the option of setting the Timeout property, as I'm assuming? -- / Sean the Mc /
3
2066
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 refuse to "accept" it if changed to "true" ? Thanks Giles
4
2301
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 something like this. I bring up the first site and navigate around. Everything is okay. The stylesheets are correct and so on and so forth. When I click on a link to go to the other site from the first site (I create a new instance of the browser),...
3
9415
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 like this: ***** form.asp - <form action="ValidateAndStore.asp" method="post">
26
3615
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 opens a new IE window with Ctrl-N or File-New-Window, BOTH WINDOWS SHARE THE SAME SESSION VARIABLES. This cannot be prevented.
2
1461
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. If I read in user input from a web form, sanitize the input to make sure there isn't any injected data, and then store the sanitized input in a session variable, is there any way for that session variable to be modified by the client afterwards? I...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.