Ticket #92 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.