473,320 Members | 2,071 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,320 software developers and data experts.

Can browser affect the session?

I posted earlier about this, I have an application and a sequence of
activities will cause the session to restart. My code will go to
session_start right after I execute a Response.Redirect(mypage) in
order to reload the page. I use this statement in other parts of the
code and it doesnt cause this. It is not a session.abandon statement,
or a timeout. Someone here suggested that the server recycling can
cause the session to restart, but I dont have anything in my event log
saying there was a recycle. This problem happens whether I use inproc
or stateserver session models.

What I found interesting, and this is new from my earlier post, is that
this problem with the unexplained session restart happens only on IE6.
I have tried the same thing on Opera and Firefox and it works
beautifully, no session restart happens. What I am wondering here is
how can the browser affect the session? Doesnt the session live in the
server, not understanding how this would make a difference.

Any ideas

Jun 23 '06 #1
3 1227
The session does live on the server. However, the session cookie is on the
client - and the browser sends this up on every requests. I haven't
experienced what you are describing, but perhaps the session cookie is
getting lost somehow on the redirect.
"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
I posted earlier about this, I have an application and a sequence of
activities will cause the session to restart. My code will go to
session_start right after I execute a Response.Redirect(mypage) in
order to reload the page. I use this statement in other parts of the
code and it doesnt cause this. It is not a session.abandon statement,
or a timeout. Someone here suggested that the server recycling can
cause the session to restart, but I dont have anything in my event log
saying there was a recycle. This problem happens whether I use inproc
or stateserver session models.

What I found interesting, and this is new from my earlier post, is that
this problem with the unexplained session restart happens only on IE6.
I have tried the same thing on Opera and Firefox and it works
beautifully, no session restart happens. What I am wondering here is
how can the browser affect the session? Doesnt the session live in the
server, not understanding how this would make a difference.

Any ideas

Jun 23 '06 #2
Some ISPs and corporate networks route their outgoing traffic
through proxy server farms. This can result in
session cookies getting reset because the
server thinks you are a new session from a
different ip.

You don't say much about the environment
you are experiencing this with. So, I'm
just throwing this out there for consideration.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
I posted earlier about this, I have an application and a sequence of
activities will cause the session to restart. My code will go to
session_start right after I execute a Response.Redirect(mypage) in
order to reload the page. I use this statement in other parts of the
code and it doesnt cause this. It is not a session.abandon statement,
or a timeout. Someone here suggested that the server recycling can
cause the session to restart, but I dont have anything in my event log
saying there was a recycle. This problem happens whether I use inproc
or stateserver session models.

What I found interesting, and this is new from my earlier post, is that
this problem with the unexplained session restart happens only on IE6.
I have tried the same thing on Opera and Firefox and it works
beautifully, no session restart happens. What I am wondering here is
how can the browser affect the session? Doesnt the session live in the
server, not understanding how this would make a difference.

Any ideas

Jun 26 '06 #3
Thanks for your suggestion, but this problem happens to my application
even when I am running the application locally on my machine as
localhost,

Another interesting thing is that the "session_end" method never runs,
I only get session_start method running again. This is when running
inproc session model, I know session_end doesnt run when using
stateserver, but should when running inproc. I get a different
sessionid too.

Robbe Morris [C# MVP] wrote:
Some ISPs and corporate networks route their outgoing traffic
through proxy server farms. This can result in
session cookies getting reset because the
server thinks you are a new session from a
different ip.

You don't say much about the environment
you are experiencing this with. So, I'm
just throwing this out there for consideration.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
I posted earlier about this, I have an application and a sequence of
activities will cause the session to restart. My code will go to
session_start right after I execute a Response.Redirect(mypage) in
order to reload the page. I use this statement in other parts of the
code and it doesnt cause this. It is not a session.abandon statement,
or a timeout. Someone here suggested that the server recycling can
cause the session to restart, but I dont have anything in my event log
saying there was a recycle. This problem happens whether I use inproc
or stateserver session models.

What I found interesting, and this is new from my earlier post, is that
this problem with the unexplained session restart happens only on IE6.
I have tried the same thing on Opera and Firefox and it works
beautifully, no session restart happens. What I am wondering here is
how can the browser affect the session? Doesnt the session live in the
server, not understanding how this would make a difference.

Any ideas


Jun 26 '06 #4

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

Similar topics

22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
11
by: David Lozzi | last post by:
Hello All, I am having an issue with thus far one computer on my client's web site. If the user loads the shopping cart and then closes all browser windows, then opens them back up, goes back to...
7
by: someone | last post by:
Let's say I have a Session timeout of 20 minutes. If the browser periodically request a graphic file, will that keep its Session alive? What keeps the Session alive? Is it the Session cookie that...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
8
by: KMZ_state | last post by:
We have a question here where a developer says that if the same user starts 2 instances of the application on his machine, the session variables may get mixed up b/c the session is PER IP ADDRESS. ...
0
by: HLady | last post by:
I posted earlier about this, I have an application and a sequence of activities will cause the session to restart. My code will go to session_start right after I execute a Response.Redirect(mypage)...
2
by: Siegfried Heintze | last post by:
I made the following change to my web.config file (see fragment below) but does not seem to affect the timeout on my web page. I have a huge session state but since I'm the only one using it, I'd...
1
by: robbiesmith79 | last post by:
Before I extend the users session timeout, with ini_set("session.gc_maxlifetime",86400*2); // buy the user 48 hours to make a decision, I wanted to know if this idea is going to affect all...
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.