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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top