Ticket #92 (closed defect: fixed)

Opened 5 years ago

Last modified 18 months ago

Can't log in/out in Windows IIS

Reported by: dartar Owned by: NilsLindenberg
Priority: normal Milestone: 1.3
Component: core Version: 1.1.6.1
Severity: normal Keywords:
Cc:

Description

(reported by MarceloArmonas)

When Wikka is installed in IIS5.0 occurs an error when using cookies and using the header(Location:)

 http://br.php.net/manual/pt_BR/function.setcookie.php#51195 This error implies in not log in or out, because the page redirects before the cookie is created.

The problem can be solved using javascript to redirect the page, just change the following line in the code of Redirect function on wikka.php:

header("Location: ".$url);

by this:

if (substr_count($_SERVER["SERVER_SOFTWARE"],"IIS") > 0) {
    echo '<SCRIPT>window.location.href = "'.$url.'";</SCRIPT>';
} else {
    header("Location: ".$url);
}

Change History

Changed 4 years ago by DarTar

Nils please take a look at this since you modified the cookies.

Changed 4 years ago by NilsLindenberg

  • owner changed from unassigned to NilsLindenberg
  • status changed from new to assigned

Changed 4 years ago by DotMG

  • status changed from assigned to closed
  • resolution set to fixed

Sorry Nils, I close this ticket even if it is assigned to you. I worked on it today with DarTar's logout bug. Fixed [92].

Changed 4 years ago by DarTar

Mahefa, the logout "bug" was actually a stupid mistake on my side. I had replaced a $_REQUEST with a $_POST, that's why it didn't work anymore. Anyway now it's fixed and I replaced all the JS dialogs with server-side generated alerts in usersettings.php.

For future reference - I'll write this in the coding guidelines - we should format all the error/success messages with the following markup (which now uses two dedicated CSS selectors):

error message

<em class="error">This is an error message</em>

success notification

<em class="success">It worked, congratulations!</em>

Changed 4 years ago by bcolwin@…

  • status changed from closed to reopened
  • resolution fixed deleted

Just reinstalled software and have a problem logging out. After clicking on the LogOut button on the UserSetting page, I get the following message ... "This page doesn't exist yet. Maybe you want to create it?" ... and user remains logged in.

Changed 4 years ago by NilsLindenberg

Please make sure, that your settings for mod_rewrite and the base url are correct!

Changed 4 years ago by BrianKoontz

  • milestone changed from 1.1.6.2 to 1.1.7.1

Assigned to milestone 1.1.7.1 (although I seriously doubt this is a Windows IIS issue...)

Changed 3 years ago by DotMG

  • status changed from reopened to closed
  • resolution set to fixed

The bug description is fixed. Please address new problem on new ticket with link to this one, with much more informations.

Changed 18 months ago by DarTar

  • milestone changed from 1.2.1 to 1.3

Retargeting to 1.3, this ticket has already been closed in trunk, from which 1.3 will be branched. Consider backporting urgent issues to 1.2.X

Note: See TracTickets for help on using tickets.