Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disappearing ntopng menu items after autologout #1706

Closed
pshute opened this issue Mar 19, 2018 · 12 comments
Closed

Disappearing ntopng menu items after autologout #1706

pshute opened this issue Mar 19, 2018 · 12 comments

Comments

@pshute
Copy link

pshute commented Mar 19, 2018

If I log into ntopng then leave it till autologout times out (apparently 12 hours), I can still use many menu items, but some items have disappeared. Eg I can change interfaces and look at traffic charts, but the menu items for changing settings are gone. This is fixed by logging out and in again, but the menu item for logging out is also gone. The only way to log out is to manually edit the URL to add logout.lua.

Browser is Firefox 59.0.1 (64 bit) on Windows 10. Ntopng is Professional Edition v.3.3.180220.

@pshute
Copy link
Author

pshute commented Mar 19, 2018

This screenshot is of the interface home page after autologout.
screenshot-2018-3-20 welcome to ntopng 2

@pshute pshute changed the title Disappearing ntopng menu items Disappearing ntopng menu items after autologout Mar 19, 2018
@pshute
Copy link
Author

pshute commented Mar 19, 2018

This is a screenshot taken after logging back in, showing the items that are missing after autlogout.
screenshot-2018-3-20 welcome to ntopng 3

@pshute
Copy link
Author

pshute commented Mar 19, 2018

Plugins installed:
All Tabs Helper
Tab Counter
Tree Style Tab

I have been asked to:
- When you experience the problem, do a screenshot. Please open the javascript inspector of your browser and see if there are errors. Moreover, if you go into the cookies (e.g. under chrome into Application -> Cookies), do you have cookies listed?
- If you temporary add the --disable-autologout option temporary, can you still experience the problem?

I will try to do these things over the next few days. The long timeout makes it slow to do tests.

@emanuele-f
Copy link
Contributor

Thank you for providing details, we'll do some tests on our own too.

@pshute
Copy link
Author

pshute commented Mar 22, 2018

I have left the session logged in for three days, checking it each morning. I didn't open that browser tab for the whole three days, except to check it each morning.

The first two mornings, it had logged out. The third morning, it was showing the symptoms I described.

There were no cookies. I opened what I think is the javascript inspector, but could see no errors as I browsed the partially disabled site. I clicked on Menu/Web Developer/Inspector, then the Debugger tab. I will leave this open and check if there's anything showing there on Monday.

@pshute
Copy link
Author

pshute commented Mar 22, 2018

After logging in again, I can see a user and a session cookie, both set to expire in one hour. The expiry time updates to an hour ahead each time I view it.

I tried deleting both cookies, and the site logged out.

I logged in again and tried deleting just the user cookie. This resulted in the same symptoms I described.

@emanuele-f
Copy link
Contributor

With 3a17284 login redirection is forced when session expires. This solves page breaking issues (this is likely your case) which are caused by login page html being inserted into the webpage. A new package will be available in one hour. Please check it out.

@pshute
Copy link
Author

pshute commented Mar 29, 2018

Still happening!
screenshot-2018-3-30 welcome to ntopng

@emanuele-f
Copy link
Contributor

This is weird. Please do the following:

  • Add the --disable-autologout to your options temporarily. This way we will know if that's related to the session expiration
  • When you experience the issue again, post a screenshot of the developer console, of both the console page and web cookies page

I think this is not related to session expiration because in that case just refreshing the page would bring you to the login page.

@simonemainardi
Copy link
Contributor

also make sure all the browser extensions are disabled

@emanuele-f
Copy link
Contributor

@pshute any news?

@emanuele-f
Copy link
Contributor

Closing for inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants