joomla! 1.5.26 and “You are currently logged in to the private area of this site”

戏子无情 提交于 2020-01-15 05:16:26

问题


When the Joomla! (1.5.26) session has expired, I redo the login, after submitting username and password I get this message: "You are currently logged in to the private area of this site." If I click on another internal-link the redirection works, but if I re-click on the same return url link (where I was where the session has expired) I re obtain the previous message, but I'm logged in correctly! I use the Joomla! SEF. No other external component/module/plugin.

To make it running I have to delete manually the browser's cache!

Ideas?


回答1:


Just had this happen to me, and remembered seeing your question. I don't know what your SEF ramifications are, but in my case, the native Joomla url works "normally":

http://mysite.com/?option=com_mycomponent&view=myview&Itemid=48

When I inadvertently excluded "view" like below, it gave me the same result as you're experiencing:

http://mysite.com/?option=com_nmm&Itemid=48

This suggests to me that your SEF is translating the friendly url into an invalid Joomla url. Hope this helps! Joomla knows you're logged in, but is missing all the info it needs to display whatever it is that you're expecting.




回答2:


After months I got it!!! Joomla! 1.5.26 line 324 in the file /libraries/joomla/application/application.php Comment the following lines

/*
if (!$moved && strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false) {
    // WebKit browser - Do not use 303, as it causes subresources reload (https://bugs.webkit.org/show_bug.cgi?id=38690)
    echo '<html><head><meta http-equiv="refresh" content="0;'. $url .'" /></head><body></body></html>';
}
else {
    // All other browsers, use the more efficient HTTP header method
    header($moved ? 'HTTP/1.1 301 Moved Permanently' : 'HTTP/1.1 303 See other');
    header('Location: '.$url);
}
*/

And leave only

// All other browsers, use the more efficient HTTP header method
header($moved ? 'HTTP/1.1 301 Moved Permanently' : 'HTTP/1.1 303 See other');
header('Location: '.$url);

The webkit bug has been resolved. Check here: Bug 38690 - Submitting a POST that leads to a server redirect causes all cached items to redownload



来源:https://stackoverflow.com/questions/11244439/joomla-1-5-26-and-you-are-currently-logged-in-to-the-private-area-of-this-site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!