Logout issue in ajax call


(sivakumar) #1

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


(sivakumar) #2

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.


(vipsoft) #3

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’.


(sivakumar) #4

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


(sivakumar) #5

Hi vipsoft,

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

thanks


(vipsoft) #6

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


(sivakumar) #7

Hi vipsoft,

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

thanks.