Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2006

Tip: Looking for answers? Try searching our database.

Can browser affect the session?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HLady - 23 Jun 2006 20:02 GMT
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
Marina Levit [MVP] - 23 Jun 2006 20:09 GMT
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.

>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
[quoted text clipped - 14 lines]
>
> Any ideas
Robbe Morris [C# MVP] - 26 Jun 2006 01:55 GMT
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.

Signature

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

>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
[quoted text clipped - 14 lines]
>
> Any ideas
HLady - 26 Jun 2006 16:26 GMT
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.

> Some ISPs and corporate networks route their outgoing traffic
> through proxy server farms.  This can result in
[quoted text clipped - 29 lines]
> >
> > Any ideas

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.