473,394 Members | 1,663 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,394 software developers and data experts.

ASP.NET loses Session variables when in Debug mode

Hello,
It would be great if someone knows the answer to this problem I'm
getting bogged down with it.
Basically I'm working with an ASP.NET solution that uses the Session
object to maintain state. When I use IIS to browse the .aspx pages the
session state works but when I step through the code with Visual
Studio's debugger the session variables are lost although the session
ID stays the same.

When I say the session variables are lost, I set them on one page - via
a control - but when I go to another page the session count is 0 and
querying the session variables returns null. I can't understand why it
works when I browse the pages via IIS but not when I'm using the
debugger.

I've searched the newsgroups and although there are people out there
with similar problems either their solutions don't work for me or are
not suitable for the project I'm working on.
I look forward to your replies,

Daniel.

Nov 19 '05 #1
1 2379
Daniel,

Let's get some specifics on this issue. What are the URLs of the pages that
you're using for this test? Could you post a snippet of code to describe
what you're doing?

:DG<

"dsmith-nospam@poptech-dot-coop" <ds****@poptech.coop> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hello,
It would be great if someone knows the answer to this problem I'm
getting bogged down with it.
Basically I'm working with an ASP.NET solution that uses the Session
object to maintain state. When I use IIS to browse the .aspx pages the
session state works but when I step through the code with Visual
Studio's debugger the session variables are lost although the session
ID stays the same.

When I say the session variables are lost, I set them on one page - via
a control - but when I go to another page the session count is 0 and
querying the session variables returns null. I can't understand why it
works when I browse the pages via IIS but not when I'm using the
debugger.

I've searched the newsgroups and although there are people out there
with similar problems either their solutions don't work for me or are
not suitable for the project I'm working on.
I look forward to your replies,

Daniel.

Nov 19 '05 #2

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

Similar topics

3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
0
by: Daniel Smith | last post by:
Some more information. The reason for the variables being lost is that the Session_Start event is being called several times and this then clears the variables but not the Session Id. The...
0
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
3
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
4
by: T Ralya | last post by:
I am told that ASP.NET controls the session ID and session variables, but that does not fit my symptoms. I am posting here as directed. I'm hoping that someone can at least recommend something to...
0
by: Joseph S. | last post by:
hi all, debugging PHP applications interactively is possible, easy and free. I am talking about PHPEclipse and using it for debugging over several scripts or debugging through a session. Since I...
8
by: Bhagya | last post by:
I am doing client side validation in my page. The password field does not retain its value. Pls help
14
by: Rick | last post by:
We are in the process of testing a large web project that I converted from VS 2003 to VS 2005. Everything seems to be working except for a few minor things. But the main issue I have is this, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.