<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>The issue described below turned out not to lie in the CleanURL's recipe (occured when I turned that off too). Think I might have discovered a bug in pmwiki. When I have the following in a subwiki's local/config.php:</div><div><br></div><div>session_name('1268404902.04627'); //Unique session name by using timestap</div><div><br></div><div>...I don't stay authenticated after logging in - clicking any link will prompt me for my username/password. When I change it as follows:</div><div><br></div><div>session_name('126840490204627');</div><div><br></div><div>...everything's fine. Seems like full stops and the like in session_name break the session/cookie. D'oh.</div><div><br></div><div>Cheers,</div><div><br></div><div>Dawa</div><div><br><div><div>On Feb 3, 2010, at 4:10 PM, Dawa Ometto wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>I'm trying to apply the cleanurl's recipe (mod_rewrite/.htaccess) on a <br>test pmwiki environment. The URL-rewriting in itself is working <br>allright, so I have e.g.:<br><br><a href="http://mysite.com/Main/HomePage">http://mysite.com/Main/HomePage</a><br><br>...for the top-level installation, and:<br><br>http://mysite.com/wiki/test/Main/HomePage<br><br>...for a second (sub)wiki running on the farm. All this is nice, but <br>whenever I click a link or reload a page in the second wiki I have to <br>reauthenticate (authuser/ldap). This doesn't occur in the top-level <br>wiki. The .htaccess I have in /wiki/test/.htaccess looks like this:<br><br>RewriteEngine On<br>RewriteBase /wiki/test/ &nbsp;&nbsp;&nbsp;# The 'test' subwiki is in <br>&lt;documentroot&gt;/wiki/test<br># Send requests without parameters to index.php.<br>RewriteRule ^$ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index.php &nbsp;[L]<br># Send requests for index.php to index.php.<br>RewriteRule ^index.php$ index.php &nbsp;[L]<br># Send requests to index.php, appending the query string part.<br>RewriteRule ^([A-Z0-9?-?].*)$ index.php?n=$1 &nbsp;[QSA,L]<br><br>It looks like the authentication cookie somehow isn't sticking because <br>of the rewriting. Has anyone ever encountered this problem? Any <br>suggestions for a solution or debugging?<br><br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Helpdesk Wijsbegeerte</div><div><a href="http://helpdesk.phil.uu.nl">http://helpdesk.phil.uu.nl</a></div><div>Bestuursgebouw, kamer 187</div><div>Tel. (030-253)7779, bgg 2817</div></div></span></div></div> </div><br></div></body></html>