Session expired when redirecting to a full path.

G

Guest

So I have three ASPX files. File1.aspx has in the Page.Load handler:

Response.Redirect("http://www.domain.com/directory/file3.aspx")

File2.aspx has:

Response.Redirect("/directory/file3.aspx")

File3.aspx is just a blank page.

Then, in the Global.asax file, I have code in the Session.Onstart with a
breakpoint.

When I fire up the application in debug mode on File1.aspx, the
Session.Onstart gets fired TWICE. From File2.aspx, it gets fired only once.

Is this by design? If so, what changed? ASP 3.0 doesn't have this
limitation!

Thanks.

S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top