Cookiekess forms authentication gives error with ASP.NET 2.0 SiteMap

J

Jules

For a project I'm developing a custom ASP.NET 2.0 website.

The case:
- Forms authentication
- Cookieless forms authentication and sessionstates is enabled via
cookieless="AutoDetect".
- On the MasterPage a TreeView-menu is linked to the Web.sitemap.

The issue:
When I browse this website with a browser that allows cookies,
everything works ok. That is; I can sign in, and via the TreeView-menu
I can navigate through the website. Now when I browse this website with
a browser that doesn't allow cookies I can still sign in. However, when
I try to navigate through the website using the TreeView-menu, I get
signed out and prompted with the login page. To be sure it was the
TreeView-menu control that was responsible for this result, I added
some <asp:HyperLink>-controls which I used to navigate through the
site. This didn't give this issue.

Is there a known problem with the SiteMap navigation-controls in
ASP.NET 2.0 in combination with cookieless authentication? If so, are
there solutions of workarounds?

Help would be greatly appreciated! Actually the sooner the better, this
has hold us up for too long already.
 
J

Jules

Unfortunately I didn't receive any reaction on my post above.

I found that working cookieless using FormsAuthentication isn't as easy
as it should be. The issue above illustrates this perfectly.
Nevertheless I found a workaround in overriding the DataBound event.

If anybody has a better solution implementing this, please let me know.
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top