[FIXED - IMPLEMENTED] How to logout from control panel?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3  Next
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sat Mar 25, 2017 12:29    Post subject: Logout button for DD-WRT Reply with quote
I also agree that a logout button would be good.

I understood that it's easier for the programmers to test and debug DD-WRT without automatic or manul logout options.

BTW, I, using Firefox, noticed that clearing cookies for the router IP address might not do the trick... at least, not instantly.
Sponsor
JohnAntonioCollins
DD-WRT Novice


Joined: 22 Jul 2017
Posts: 1

PostPosted: Sat Jul 22, 2017 14:39    Post subject: Use a script to restart your browser Reply with quote
I'm on Ubuntu and Chrome.
In order to force a logout of dd-wrt web interface I made a script to shutdown Chrome and then restart Chrome. As an added "feature" it logs me out of everything that the browser or service doesn't automatically log me into. But that works for me. I also made a launcher for the script and pinned it to my Launcher bar. Here's my script:

#!/bin/bash
# closes google-chrome to force logout, then restores session.
pkill --oldest chrome
google-chrome --restore-last-session &

This should be easily adapted to Windows and may work directly on OSX.

I know this is an old topic, but there's still no logout button. I wonder if there is a command that could be run from the Commands tab in the dd-wrt web interface that would force a logout somehow.
atomicamp
DD-WRT User


Joined: 16 Apr 2018
Posts: 107
Location: Milwaukee, WI

PostPosted: Tue Apr 17, 2018 2:29    Post subject: Re: How to logout from control panel? Reply with quote
[quote="modervador"]
DHC_DarkShadow wrote:


Workaround: say you are at this page,

http://192.168.2.3/Status_Router.asp

Place your cursor at the appropriate place in the browser address bar and type W@ so that you get this:

http://W@192.168.2.3/Status_Router.asp

and hit enter.


I am using a double router setup and this does not work for me. It leads me right back to the exact same page without loading anything. Do I need to have one router on a different subnet mask or something?
atomicamp
DD-WRT User


Joined: 16 Apr 2018
Posts: 107
Location: Milwaukee, WI

PostPosted: Sat Dec 29, 2018 3:08    Post subject: Re: How to logout from control panel? Reply with quote
modervador wrote:
DHC_DarkShadow wrote:
Would there be any advantage to having a logout? Should it be put on the "enhancement" wish list?

Yes, it would help. After you logout, you can keep all your other your browser windows/tabs open but now you (or anybody else) can't simply browse to the router GUI (by accident or on purpose) without entering the user/passwd.

Workaround: say you are at this page,

http://192.168.2.3/Status_Router.asp

Place your cursor at the appropriate place in the browser address bar and type W@ so that you get this:

http://W@192.168.2.3/Status_Router.asp

and hit enter. When it asks for password again, hit cancel. Congratulations, it won't let you in till you provide the correct username/password again. I'd still prefer a logout button on every page, like on email and banking websites.


I use https on my webif. This workaround doesn't seem to work with that. Might you have a suggestion for https logout?

_________________
DanRanRocks - Tech Tutorials by Dan Ran

https://github.com/danrancan
dan@danran.rockst
My Blog https://danran.rocks
Join me on key base! and Add me on Keybase

Current Linksys WRT3200acm Firmware "DD-WRT v3.0-r51140 std (12/31/22)
atomicamp
DD-WRT User


Joined: 16 Apr 2018
Posts: 107
Location: Milwaukee, WI

PostPosted: Mon Feb 24, 2020 4:56    Post subject: Reply with quote
d0ug wrote:
Exit your browser when you are done?

Not the solution I was hoping for but I guess thats about all I can do. Hopefully they one day implement a logout button.

_________________
DanRanRocks - Tech Tutorials by Dan Ran

https://github.com/danrancan
dan@danran.rockst
My Blog https://danran.rocks
Join me on key base! and Add me on Keybase

Current Linksys WRT3200acm Firmware "DD-WRT v3.0-r51140 std (12/31/22)
NALF
DD-WRT Novice


Joined: 03 Oct 2022
Posts: 2

PostPosted: Mon Oct 03, 2022 22:57    Post subject: Reply with quote
2022 and still no logout button?! Unbelievable! I love DD-WRT but let's say that the user interface and experience are a low point. Sad
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Tue Oct 04, 2022 17:08    Post subject: Reply with quote
As noted by me in New Build 41771: 12-21-2019-r41771 thread in the Broadcom forum:

kernel-panic69 wrote:
One feature that is missing is an actual logout button, but there is a trick to logout of the webUI instead of closing the browser. ALSO, you should have a single tab in a completely separate browser from your regular internet traffic for the webUI.

Which I just edited that post to point back to an earlier post in this thread, which has a workaround to logout of the webUI:

modervador wrote:
Workaround: say you are at this page,

http://192.168.2.3/Status_Router.asp

Place your cursor at the appropriate place in the browser address bar and type W@ so that you get this:

http://W@192.168.2.3/Status_Router.asp

and hit enter. When it asks for password again, hit cancel. Congratulations, it won't let you in till you provide the correct username/password again.

The feature and topic of logging out of the DD-WRT webUI has been discussed in several other threads, starting with the most recent and going back to the oldest thread in the first page of web search results:

A Log-Out Button
How to LOG OUT
Logout from web admin?
How Do I Log Out from the Web GUI?
help logout DD-WRT gui

I don't know if this is on the radar for either @BrainSlayer, @the-j0ker, or @egc to implement at some point, but this wouldn't be too difficult to add to the floating locked footer buttons or a link in the common page header.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Tue Oct 04, 2022 19:32    Post subject: Reply with quote
Thanks for the logout workaround @kernel-panic69. Add one vote for an actual logout button anywhere.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Wed Oct 05, 2022 14:28    Post subject: Reply with quote
https://svn.dd-wrt.com/changeset/50366
https://svn.dd-wrt.com/changeset/50368
Hmm. Link below for today and the next.
https://svn.dd-wrt.com/?from=Oct+6%2C+2022&daysback=1&changeset=on
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Wed Oct 05, 2022 15:44    Post subject: Reply with quote
Yep, looks like we're finally getting a working logout function after all these years. Implementation started a while back, apparently, just never finished:

https://svn.dd-wrt.com/browser/src/router/kromo/cisco_wrt54g_en/Logout.asp?rev=4215
https://svn.dd-wrt.com/browser/src/router/kromo/cisco_wrt54g_en/Logout.asp?rev=6337
https://svn.dd-wrt.com/browser/src/router/kromo/dd-wrt/Logout.asp?rev=8278
https://svn.dd-wrt.com/browser/src/router/kromo/dd-wrt/Logout.asp?rev=47314
https://svn.dd-wrt.com/browser/src/router/kromo/dd-wrt/Logout.asp?rev=47326
https://svn.dd-wrt.com/browser/src/router/kromo/dd-wrt/Logout.asp?rev=50165

https://svn.dd-wrt.com/browser/src/router/httpd/modules/base.c?rev=50368#L1608
https://svn.dd-wrt.com/browser/src/router/httpd/modules/base.c?rev=50368#L1812
https://svn.dd-wrt.com/browser/src/router/httpd/modules/base.c?rev=50368#L2164
https://svn.dd-wrt.com/browser/src/router/httpd/modules/base.c?rev=50368#L2871

Looking forward to seeing the rest of the bits fall into place. Also, @yoyoma2: That workaround has been around a long time, it isn't my work... but thanks for that! CoolWink --- Anything to fuel the fire of ire and animosity that is fed by folks' overtly psycho-hypersensitive focus on me is welcomed. People are getting their lips ripped by all of the actual bogus forum accounts.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Wed Oct 05, 2022 15:56    Post subject: Reply with quote
yoyoma2 wrote:
Thanks for the logout workaround @kernel-panic69. Add one vote for an actual logout button anywhere.


You'll get it soon as I place the button somewhere to call the new function dologout.asp magic from a button somewhere and decide what todo with the old logout.asp. Its obvious its helpful function,if people are averse to closing the browser.

Not in a terrible rush but it will happen sooner than later.

This https://svn.dd-wrt.com/changeset/50370 was a bug that only took 3 weeks to get past the gatekeeper and none noticed it for 16 years. hahaha-ha!

cof cof.

/me blows nose.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Wed Oct 05, 2022 16:02    Post subject: Reply with quote
the-joker wrote:
This https://svn.dd-wrt.com/changeset/50370 was a bug that only took 3 weeks to get past the gatekeeper and none noticed it for 16 years. hahaha-ha!

cof cof.

/me blows nose.

It was noticed, but I have no glue and I'm stupid. /me chuckles.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Oct 05, 2022 22:28    Post subject: Reply with quote
the-joker wrote:
You'll get it soon as I place the button somewhere to call the new function dologout.asp magic from a button somewhere and decide what todo with the old logout.asp.
Terrific! A long standing small annoyance, like the logout button absence, makes the fix very satisfying.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Thu Oct 06, 2022 15:35    Post subject: Reply with quote
Its already working but I dont have test build yet to confirm the last changes that also fix the failed CSS loading issues, no server side delays needed anymore finger crossed.

Im a bit behind getting test builds to ensure a minimally bug free experience even if this is technically expected to be buggy here and there.

Im finally with my head above water DD-WRT side on my todo list that took 2 years to clear about 80% of crap, meaning personal circumstances permitting I can start working on flexible layouts and funky stuff like that soon enough.

For now logout wise expect basic probably not ideal accesibility/usablitly wise but somewhat working for elegant styles/inpired themes, legacy shit like brainslayer wikar need to be inline for next round.

Please be a little more patient while the iron kinks removes.

Enjoy.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Thu Oct 06, 2022 18:16    Post subject: Reply with quote
Test builds were up for Northstar devices within ~10 minutes of your post. Flashed r50409 alpha onto my R7000P, and not knowing what I was supposed to look for and where, it wasn't until I tested kromo UI style that I saw where the logout button was and noticed that kromo UI style is somewhat b0rked now. If you click on logout and log out, then log back in, anything you click on will log you out, at least on kromo. I also noticed the sticky footer on pretty much all UI styles is not present on the Services -> Services tab. All my browsers clear cache on exit and that laptop only gets fired up to play with DD-WRT on whatever router is on the bench, so it's not a cache issue - but I reloaded and used cache override for the sake of argument with no changes in behavior.


Screenshot at 2022-10-06 12-51-26.png
 Description:
 Filesize:  115.81 KB
 Viewed:  3631 Time(s)

Screenshot at 2022-10-06 12-51-26.png



Screenshot at 2022-10-06 12-47-56.png
 Description:
 Filesize:  180.56 KB
 Viewed:  3635 Time(s)

Screenshot at 2022-10-06 12-47-56.png



_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum