Cookieless Session Problems in ASP.NET

If you have tried to implement cookieless sessions in ASP.NET and haven't been able to make it work, the following is likely your problem.

If you have tried to implement cookieless sessions in ASP.NET and haven't been able to make it work, the following is likely your problem.


1. Fully qualified URLs in the response.redirect, server.transfer, and FORM action
tags cannot be used. Here is an example of a fully qualified
URL: http://www.eggheadcafe.com/default.asp

2. Root addressing can also cause problems with response.redirect,
server.transfer, and FORM action tags. In other words /home/default.aspx
cannot be used. You'd have to reference it using relative addressing.
For example, home/default.aspx

It is still ok to use root addressing or fully qualified URLs for things like
JavaScript files and images. You just have to use relative addressing
for links locally on your site. I entered this Tip because most ASP.NET
books only specifically mention #1.

Please take a moment to rate this Tip (opens in new window):

http://www.turnkeytools.com/polls/default.asp?POLLID=10000068&DOMAINID=4610



Submission Date:  9/23/2005 3:00:26 PM
Submitted By:  Robbe Morris
My Home Page:  http://www.robbemorris.com

By Robbe Morris   Popularity  (627 Views)
Picture
Biography - Robbe Morris
Robbe has been a Microsoft MVP in C# since 2004. He is also the co-founder of NullSkull.com which provides .NET articles, book reviews, software reviews, and software download and purchase advice.  Robbe also loves to scuba dive and go deep sea fishing in the Florida Keys or off the coast of Daytona Beach. Microsoft MVP