<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2724214.aspx</link><pubDate>Tue, 04 Nov 2008 19:52:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2724214</guid><dc:creator>urir10</dc:creator><author>urir10</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2724214.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2724214</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Now i got another question... :P&lt;/p&gt;&lt;p&gt;&amp;nbsp;When i have the user log in, i know his id and name. What they asking me now is to have the root node of the tree view to show the user id , and when clicked it should go to&amp;nbsp;&lt;/p&gt;&lt;p&gt;the home page. How can i do that? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2715416.aspx</link><pubDate>Thu, 30 Oct 2008 19:34:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2715416</guid><dc:creator>urir10</dc:creator><author>urir10</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2715416.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2715416</wfw:commentRss><description>&lt;p&gt;Thanks anas&amp;nbsp;&lt;/p&gt;&lt;p&gt;the first solution worked great, thanks&lt;/p&gt;&lt;p&gt;but the second one im still stuck on. it logs in fine the first time and i can browse throu all the pages fine, then i logout and clear the session, it goes to the logout page and then i signout like you said in the pageload. I then click a button to go back to the logon page, i login and it goes directly to the logout page instead of the default .aspx file. Could it be because of my treeview control, maybe its storing the value of the last visted page or something?&lt;br /&gt;&lt;/p&gt;


NVM&amp;nbsp;&amp;nbsp; got it to work.&amp;nbsp; Thanks for your help anas!&lt;br /&gt;</description></item><item><title>Re: How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2715300.aspx</link><pubDate>Thu, 30 Oct 2008 18:34:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2715300</guid><dc:creator>anas</dc:creator><author>anas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2715300.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2715300</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;urir10:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;but if the user clicks the back button it will go the last page that only logged in users can go ,if you click any link after you go back it will go to the login page but still i need to disable it from being able to go even one page back. How can i do that?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Try to disable page caching , Add this line to your page load ,&lt;/p&gt;&lt;p&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache)&lt;/p&gt;&lt;p&gt;To avoid repeating that line , you can create a base calss for your pages , or if you are using master page ,you can just place that line in its Page_load method ,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;urir10:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;And also another problem im facing is that after i logout, i created a logout page that says &amp;quot;you are now logged out&amp;quot; or whatever, and then i have a button to return to the login page. after i click that button and login again it opens the logout page right away. why is that?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Try to handle the Loggedin event for your login control , and place response.Redirect( your home page) code there .&lt;/p&gt;</description></item><item><title>Re: How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2714942.aspx</link><pubDate>Thu, 30 Oct 2008 15:55:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2714942</guid><dc:creator>urir10</dc:creator><author>urir10</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2714942.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2714942</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks &lt;b&gt;anas&lt;/b&gt; i guesse that will work for me.&lt;/p&gt;&lt;p&gt;Only thing i cant figure out now is how to disable the back button once the user is logged out. Lets i have my site and the user click logout , it will redirect him to the logout page and end his session,&amp;nbsp;&lt;/p&gt;&lt;p&gt;but if the user clicks the back button it will go the last page that only logged in users can go ,if you click any link after you go back it will go to the login page but still i need to disable it from bieng able to go even one page back. How can i do that?&lt;br /&gt;&lt;/p&gt;

And also another problem im facing is that after i logout, i created a logout page that says &amp;quot;you are now logged out&amp;quot; or whatever, and then i have a button to return to the login page. after i click that button and login again it opens the logout page right away. why is that?&lt;br /&gt;</description></item><item><title>Re: How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2713238.aspx</link><pubDate>Wed, 29 Oct 2008 20:42:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2713238</guid><dc:creator>anas</dc:creator><author>anas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2713238.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2713238</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;You have 2 solutions :&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Place the Login status control under the TreeView&amp;nbsp; control( outside the TreeView).&lt;/li&gt;&lt;li&gt;Add Logout page ( e.g. : Logout.aspx ) , and add it to web.SiteMap file , Also you need to use the following code in Logout page , Place the code in its Page_Load method:&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;FormsAuthentication.Signout();&lt;/p&gt;&lt;p&gt;Response.Redirect(FormsAuthentication.LoginUrl);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to insert a loginStatus control inside a tree view node</title><link>http://forums.asp.net/thread/2713185.aspx</link><pubDate>Wed, 29 Oct 2008 20:08:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2713185</guid><dc:creator>urir10</dc:creator><author>urir10</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2713185.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2713185</wfw:commentRss><description>&lt;p&gt;I have a tree view menu that is populated from the sitemap based on the user role, at the end of the tree view i want to have a loginStatus control to enable users to logout.&lt;/p&gt;&lt;p&gt;How can i do that? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>