Logout issue in ajax call

Hi,

I have opened piwik in two tabs in my browser. I logged out in one tab. When i refresh the same piwik redirects to login page.
But in the other tab, when i clicked any chart (pie/bar) from the selection, it throws an error but it doesn’t redirect to login page.

i just want to know how to handle logout page in ajax (jquery).

Help me out.

thanks

Hi,

I want to know how to handle the logout issue in widget area.

Once i logged out, widget still works and doesn’t redirect to login page. It redirects to login page on;y if i refresh. Otherwise the ajax call all happens.

thanks.

This has been fixed in the upcoming 0.5 release.

Reloading the page or navigating the menu will redirect to the Login.

AJAX requests, where you click on the widget’s footer icons, will result in the widget displaying ‘no data’.

Hi vipsoft,

Is there any workaround in the current version.
I want to redirect to login page, if authentication fails in all ajax calls.

thanks

check the attachment, in that on ajax call it is showing login page content in div, instead the page has to redirect to login page.

thanks

Hi vipsoft,

check the screenshot for OFC error.
In this scenario , the page has to redirect to login page.

thanks

Sorry but this is the direction we’re going. Redirecting to the Login was more of a hack than a fix.

Hi vipsoft,

I hacked the code.
what i did was checked whether cookie exists or not through javascript.

thanks.