<?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 logout a user programmatically?</title><link>http://forums.asp.net/thread/1493821.aspx</link><pubDate>Tue, 12 Dec 2006 00:20:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1493821</guid><dc:creator>multiplex7777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1493821.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1493821</wfw:commentRss><description>THanks Jogi. Actually my intention IS to bump off all the logged in users, as these are the users creating the account, not admin. But I'll probably use your technique when I enable Admin to also add an account.&lt;br /&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1493729.aspx</link><pubDate>Mon, 11 Dec 2006 22:17:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1493729</guid><dc:creator>jogi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1493729.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1493729</wfw:commentRss><description>&lt;p&gt;A better way to do this is to change the LoginCreatedUser Property to false.&amp;nbsp; Especially if you're using the control for an admin account to create new users in your Web app (Otherwise, you would unexpectedly logout whenever you add users).&amp;nbsp; Hope that helps. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;-jogi&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459980.aspx</link><pubDate>Fri, 10 Nov 2006 08:18:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459980</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459980.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459980</wfw:commentRss><description>Ahh, I see. No problem. Glad it helped :)&lt;br /&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459930.aspx</link><pubDate>Fri, 10 Nov 2006 06:51:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459930</guid><dc:creator>multiplex7777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459930.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459930</wfw:commentRss><description>&lt;p&gt;Thanks shados. Your solution worked.&lt;/p&gt;
&lt;p&gt;Sorry, I was writing out my post when you sent your 1st reply. Didn't see it until after I had posted.&lt;/p&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459919.aspx</link><pubDate>Fri, 10 Nov 2006 06:34:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459919</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459919.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459919</wfw:commentRss><description>What I told you will do exactly that.</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459869.aspx</link><pubDate>Fri, 10 Nov 2006 05:17:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459869</guid><dc:creator>multiplex7777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459869.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459869</wfw:commentRss><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;CreateUserWizard automatically logs in the user (I guess &lt;font color=#008000 size=2&gt;LoginCreatedUser&lt;font color=#000000&gt; is implicitly set to true). HOw do I delete the FormsAuthentication cookie?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#008000 size=2&gt;&lt;font color=#000000&gt;Thanks for the help.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459865.aspx</link><pubDate>Fri, 10 Nov 2006 05:13:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459865</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459865.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459865</wfw:commentRss><description>FormsAuthentication.SignOut() will do it.&lt;br /&gt;&lt;br /&gt;Also consider Session.Abandon() before calling that, to be sure stuff didn't stay :)&lt;br /&gt;</description></item><item><title>Re: How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459855.aspx</link><pubDate>Fri, 10 Nov 2006 05:02:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459855</guid><dc:creator>aus_nexxus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459855.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459855</wfw:commentRss><description>&lt;p&gt;When a user is logged in there is a FormsAuthentication Cookie set with their current set of roles.&amp;nbsp; You should just be able to delete the cookie which will effectively log the person out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Let me know how you get on.&lt;/p&gt;</description></item><item><title>How to logout a user programmatically?</title><link>http://forums.asp.net/thread/1459805.aspx</link><pubDate>Fri, 10 Nov 2006 03:53:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1459805</guid><dc:creator>multiplex7777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1459805.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1459805</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;&lt;p&gt;Is there a way I can logout a currently-logged-in user programmatically?&lt;/p&gt;&lt;p&gt;I have a CreateUserWizard. After the user chooses a username and pwd, I need the user to be logged in so that his/her profile information can be saved. But after all his/her profile info is updated in the database, I want to log the user out.&lt;/p&gt;&lt;p&gt;Thanks in advance for the help.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>