<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1088114" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1088114</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Megan, once I also had this</title>
    <link>https://www.webmaster-forums.net/web-design-and-graphics/drupal-7-logout-functionality#comment-1291552</link>
    <description> &lt;p&gt;Megan, once I also had this problem. Thanks for sharing such useful information.&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Apr 2021 03:59:53 +0000</pubDate>
 <dc:creator>charleshollins</dc:creator>
 <guid isPermaLink="false">comment 1291552 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Here is the improved solution</title>
    <link>https://www.webmaster-forums.net/web-design-and-graphics/drupal-7-logout-functionality#comment-1291148</link>
    <description> &lt;p&gt;Here is the improved solution for Drupal 7 logout functionality. &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function user_logout($message = &amp;#039;&amp;#039;, $status = &amp;#039;warning&amp;#039;) {&lt;br /&gt;&amp;nbsp; global $user;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; watchdog(&amp;#039;user&amp;#039;, &amp;#039;Session closed for %name.&amp;#039;, array(&amp;#039;%name&amp;#039; =&amp;gt; $user-&amp;gt;name));&lt;br /&gt;&lt;br /&gt;&amp;nbsp; module_invoke_all(&amp;#039;user_logout&amp;#039;, $user);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // Destroy the current session, and reset $user to the anonymous user.&lt;br /&gt;&amp;nbsp; session_destroy();&lt;br /&gt;&lt;br /&gt;// Sends a message to the user if you have a need to warn you&lt;br /&gt;&amp;nbsp; if(!empty($message)){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drupal_set_message($message, $status);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; drupal_goto();&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 May 2017 03:35:44 +0000</pubDate>
 <dc:creator>isarbjitgrewal</dc:creator>
 <guid isPermaLink="false">comment 1291148 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thank you for writing in</title>
    <link>https://www.webmaster-forums.net/web-design-and-graphics/drupal-7-logout-functionality#comment-1291129</link>
    <description> &lt;p&gt;Thank you for writing in details about this function. i have recently started development in drupal project so, i was not aware about drupal project.&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Mar 2017 17:17:09 +0000</pubDate>
 <dc:creator>DominickLo</dc:creator>
 <guid isPermaLink="false">comment 1291129 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Why are you creating a new</title>
    <link>https://www.webmaster-forums.net/web-design-and-graphics/drupal-7-logout-functionality#comment-1291120</link>
    <description> &lt;p&gt;Why are you creating a new site on Drupal 7 right now? Drupal 8 is viable for most common situations right now, and you&#039;ll save yourself a lot of upgrade headaches later on by starting with 8. &lt;/p&gt;
&lt;p&gt;Users don&#039;t have any privileges unless you grant them. What you probably want to do is create a new role, assign it it some permissions, and then give that user account the new role. You can also assign some privileges to the default &quot;Authenticated User&quot; role.&lt;/p&gt;
&lt;p&gt;This User Guide page on &quot;Managing User Accounts&quot; should help:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.drupal.org/docs/user_guide/en/user-chapter.html&quot; title=&quot;https://www.drupal.org/docs/user_guide/en/user-chapter.html&quot;&gt;https://www.drupal.org/docs/user_guide/en/user-chapter.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There should be a menu link to log out. If there isn&#039;t, it might be because you haven&#039;t placed the User Account menu into the theme anywhere. Try going to the Admin &amp;gt; Structure &amp;gt; blocks menu and adding the User Account menu to a region.&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Jan 2017 17:39:54 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1291120 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
