Still nobody has solved my lgout issue.

Jan 7, 2016
194
15
So, As stated before & yes I've tried a few fixes from people, I am currently using BrainCMS from @BrainCMS the latest version but for some reason when I do for example... it does not logout but instead when I go to /logout.php "404 not found" but then after doing that and going to " " then it works, my logout.php code is:

PHP:
<?php
    session_destroy();
    $_SESSION = array();
    header('Location: '.$config['hotelUrl'].'/index');
?>
My web.config is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>   
        <rewrite>
           <rules>
                <rule name="Imported Rule Brain">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
               </rule>
                <rule name="Imported Rule HK">
                    <match url="adminpan/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="adminpan/index.php?url={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Rule 112">
                   <match url="^swf/habbo-imaging/badge/([^/]+)" ignoreCase="false" />
                   <action type="Rewrite" url="/swf/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
               </rule>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="news/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/index.php?url=news&amp;id={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule 131234" stopProcessing="true">
                    <match url="home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/index.php?url=home&amp;user={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK Users" stopProcessing="true">
                    <match url="adminpan/gebruiker/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=gebruiker&amp;user={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK Sollielook" stopProcessing="true">
                    <match url="adminpan/sollielook/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=sollielook&amp;look={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK DeleteNews" stopProcessing="true">
                    <match url="adminpan/news/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=news&amp;delete={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK DeleteSollie" stopProcessing="true">
                    <match url="adminpan/sollielook/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=sollielook&amp;delete={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK EditNews" stopProcessing="true">
                    <match url="adminpan/news/edit/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=editnews&amp;news={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK DeleteBan" stopProcessing="true">
                    <match url="adminpan/bans/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=bans&amp;delete={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule HK GiveUODW" stopProcessing="true">
                    <match url="adminpan/giveuseroftheweek/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/adminpan/index.php?url=giveuseroftheweek&amp;user={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule User Ref" stopProcessing="true">
                    <match url="register/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/index.php?url=register&amp;userref={R:1}" appendQueryString="false" />
               </rule>
               <rule name="Imported Rule User Pas" stopProcessing="true">
                    <match url="newpassword/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="/index.php?url=newpassword&amp;key={R:1}" appendQueryString="false" />
               </rule>
               <rule name="LogoutFriendly1" stopProcessing="true">
                <match url="^logout$" ignoreCase="false" />
                <action type="Rewrite" url="logout.php" appendQueryString="false" />
                </rule>
           </rules>
       </rewrite>
   </system.webServer>
</configuration>
 
Jan 7, 2016
194
15
Remove the iis rule and access logout.php
is logout.php is when trying to do /logout and as stated still does 302 moved temporarily
Here is my brain directory.

 
is logout.php is when trying to do /logout and as stated still does 302 moved temporarily
Here is my brain directory.
And I did remove the web config rule.
 

Users who are viewing this thread

Top