﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Sergei Shelukhin commented on Mixed Mode Authentication</title><description>Hmm, turns out the problem was different :)
  
  
It's that I never actually set the Forms cookie because Session_start doesn't fire again when the user is authenticated after 401 response, so I'm getting redirected to Login page even though 401 part does work.
  
I guess that could be done on every request (check session variable for being set/set up applicarion specific session stuff if it's not set), buit it's kinda ugly, is there a better solution that you used?
</description><link>http://ayende.com/2748/mixed-mode-authentication#comment3</link><guid>http://ayende.com/2748/mixed-mode-authentication#comment3</guid><pubDate>Tue, 11 Sep 2007 11:22:26 GMT</pubDate></item><item><title>Sergei Shelukhin commented on Mixed Mode Authentication</title><description>Hi.
  
Where do yu attach the HTTP module so that it would override the FormsAuthentiction module? I clear response and send 401 in PreSendRequestHeaders, but it still redirects me to login page.
</description><link>http://ayende.com/2748/mixed-mode-authentication#comment2</link><guid>http://ayende.com/2748/mixed-mode-authentication#comment2</guid><pubDate>Tue, 11 Sep 2007 09:07:11 GMT</pubDate></item><item><title>Jose commented on Mixed Mode Authentication</title><description>That is pretty cool man, can you post all the code that you created so other people can use it?
</description><link>http://ayende.com/2748/mixed-mode-authentication#comment1</link><guid>http://ayende.com/2748/mixed-mode-authentication#comment1</guid><pubDate>Fri, 31 Aug 2007 00:18:09 GMT</pubDate></item></channel></rss>