473,811 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What causes new session to start?

I have a sequence of clicks in my apps that are always causing the
session to start again. This is definitely not being caused by a
timeout, cause it always happens no matter how long since the last
load. It is happening right after a this.Response.R edirect(myURL+
querystring).
This line of code is executed in other areas fine, so nothing wrong
with the actual line, but I always get a session_start event right
after this is executed after

I have tried with both inproc and stateserver and this keeps happening,
both in my machine and in 2 other servers I have tried.

My question is what reasons can cause a session to restart, other than
a timeout and a call to Session.Abandon ()? Is there a way that I can
track down what is causing it here, similar to the stack trace.

Thanks for any help,

Jun 22 '06 #1
2 3964
a couple causes:

1) asp.net is recycling - check the event log
2) your redirect url is a new domain (for example ipaddress), so the browser
starts a new session.
3) your redirect url is a new vdir

-- bruce (sqlwork.com)
"HLady" <Ha******@gmail .com> wrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
I have a sequence of clicks in my apps that are always causing the
session to start again. This is definitely not being caused by a
timeout, cause it always happens no matter how long since the last
load. It is happening right after a this.Response.R edirect(myURL+
querystring).
This line of code is executed in other areas fine, so nothing wrong
with the actual line, but I always get a session_start event right
after this is executed after

I have tried with both inproc and stateserver and this keeps happening,
both in my machine and in 2 other servers I have tried.

My question is what reasons can cause a session to restart, other than
a timeout and a call to Session.Abandon ()? Is there a way that I can
track down what is causing it here, similar to the stack trace.

Thanks for any help,

Jun 22 '06 #2
Thanks for your answer.
I think that #2 and #3 are out since I am redirecting to myself with a
different query string.

#1 sounds like it could be, but I dont have any entry in the event log,
I thought there should be in the application event log. I made sure to
have processModel set to log all events
loglevel="All"
If I am not getting an entry in the event log, does that mean that
there's no recycling happening?

Is there some sort of event I could listen to when the application is
going to recycle, anything that can help me diagnose other than the
event log?

Thanks
bruce barker (sqlwork.com) wrote:
a couple causes:

1) asp.net is recycling - check the event log
2) your redirect url is a new domain (for example ipaddress), so the browser
starts a new session.
3) your redirect url is a new vdir

-- bruce (sqlwork.com)
"HLady" <Ha******@gmail .com> wrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
I have a sequence of clicks in my apps that are always causing the
session to start again. This is definitely not being caused by a
timeout, cause it always happens no matter how long since the last
load. It is happening right after a this.Response.R edirect(myURL+
querystring).
This line of code is executed in other areas fine, so nothing wrong
with the actual line, but I always get a session_start event right
after this is executed after

I have tried with both inproc and stateserver and this keeps happening,
both in my machine and in 2 other servers I have tried.

My question is what reasons can cause a session to restart, other than
a timeout and a call to Session.Abandon ()? Is there a way that I can
track down what is causing it here, similar to the stack trace.

Thanks for any help,


Jun 22 '06 #3

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

Similar topics

7
2330
by: jerrygarciuh | last post by:
Hi folks, I am working with PHP 4.3.8, Linux, and Apache 1.3.31 on a third-level or sub domain. The following code will diplay foo, session_id(), and increment count over refreshes: <?php session_start();
1
2992
by: Philipp Schumann | last post by:
In one of my web developments, the Application_End event occurs several times while a user browses the pages. Because I make use of extensive session tracking and also provide a couple of services that need the session state, that is highly problematic as the sessions are abandoned when the application ends. I have observed this behaviour for quite a while now, locally as well as on the web, so it must be due to some of my code. Is there...
5
1896
by: xuxu | last post by:
If you use StreamWrite Write or WriteLine it causes Session to End! e.g. FileStream fs = File.Open(fileName,FileMode.Append,FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.Write("test"); sw.Close(); fs.Close(); Now all session information is lost!! Is there a work around for this ?
10
7947
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into the URL, in the format http://yourapplicationpath/(Session.SessionID)/... which saves numerous headaches when it comes to storing state across page requests and sessions.
2
4941
by: Ricky K. Rasmussen | last post by:
Hi NG, We have a rather large ASP.NET application that uses popups to display various dialogs to the user. In our work we've come over a rather annoying "bug": If we open a modal dialog using the javascript command window.showModalDialog() we loose the current Session if a new window is opend from within the modal one (using the window.open() method). The "funny" thing is that this only occurs if another instance of IE has been
4
3195
by: Vincent | last post by:
Hello, Does anyone have a problem with Apache2 crashing after executing a PHP script with session_start()? I notice if session_start() is placed anywhere except at the start of the file, APache will crash. Can anyone explain to me why? I don't want session_start to be at the start of the file because I need to override some session methods. So session_start has to happen after the declaration of custom session methods. Can anyone...
4
3967
by: MrBiggles | last post by:
Here's the sitch: I read in a csv file with 60000 lines (20 fields per record), and store the data to a local array. The file is read in and stored just fine and pretty quick. Now, if I try to assign that array to a session variable it chokes. e.g. create array and load each element with a row from the file (btw, each row is an array as well, using fgetcsv()). When local array is loaded, I assign to session var as so: $_SESSION =...
0
905
by: HLady | last post by:
I have a sequence of clicks in my apps that are always causing the session to start again. This is definitely not being caused by a timeout, cause it always happens no matter how long since the last load. It is happening right after a this.Response.Redirect(myURL+ querystring). This line of code is executed in other areas fine, so nothing wrong with the actual line, but I always get a session_start event right after this is executed after...
4
11441
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the XMLHTTP object. However, when the page requested through the XML object makes a <%Response.Redirect()%> call, a new session is created each time. Is this a flaw in the XMLHTTP Object? How can I force the session to remain the same after a...
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10392
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...
1
10403
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
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
7671
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
5555
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
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.