Cookieless Session Problems in ASP.NET |
| Printer Friendly Version |
|
|
|
| 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 |
|
| My Biography |
| Robbe has been a Microsoft MVP for C# since 2004. He is also the co-founder of EggHeadCafe. Robbe has extensive experience with web technologies, .NET, C#, CTI based applications, system administration, .NET Compact Framework, and data modeling. In his spare time, he blogs from time to time at http://robbemorris.blogspot.com |
|
|
|