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 / March 2008

Tip: Looking for answers? Try searching our database.

Session breaking on redirect

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hrvoje Vrbanc - 07 Mar 2008 10:00 GMT
Hello all,

I have recently encountered a very strange problem: on every redirect from a
codebehind page, sessions break.
A varible is correctly stored in a session on a page and then, when a
redirect occurs (on the click of the button, for example), the session is
immediately empty when a new page loads.

I'm aware of all the situations when session gets reset and none of it is
the case here (timeout, app pool recycle, app recompiling, etc.).

It happens in let's say 9 out of 10 cases, so not every time, adding more
confusion.

The environment is ASP.NET 1.1, sessions are stored InProc, timeout is 5
hours, there's a MS CMS 2002 installation there, but the same thing happens
on the CMS site and on the other sites on the same machine that are
indepedent from CMS.

It worked OK for years and the the problem suddenly started occuring.

What could be the cause?

Thank you in advance,
Hrvoje
George Ter-Saakov - 07 Mar 2008 12:50 GMT
For browser http://www.mysite.com and http://mysite.com is 2 diferent sites
(even if in reality it's the same site)
So it will not pass cookies from one to another hence session might seem to
be lost..

so check how you redirect. Do you use full path with server name (or IP
address)?

George.

> Hello all,
>
[quoted text clipped - 21 lines]
> Thank you in advance,
> Hrvoje
Hrvoje Vrbanc - 07 Mar 2008 13:11 GMT
Thanks!
However, it's not a problem - all the redirectings are relative, besides,
they worked, in some cases for years.
As the server is located within LAN and published out through ISA Server, I
suspect ISA 2006 to be the root of the problem...

Hrvoje

> For browser http://www.mysite.com and http://mysite.com is 2 diferent
> sites (even if in reality it's the same site)
[quoted text clipped - 31 lines]
>> Thank you in advance,
>> Hrvoje

Rate this thread:







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.