-
Notifications
You must be signed in to change notification settings - Fork 99
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
Login credentials lost when opening a new window (tabopen) #154
Comments
Ok, I can confirm this. Also on github the session is not available if a new instance is spawned. With following option the session is also available if a new instance is opened.
Following works for me |
I've normally JavaScript disabled, so when I open a link into a new window this has no JavaScript and does not use the session. If I |
Thanks. Working now with the tips you have given. |
What made the difference? Did the scripts fixed this for you too? I'm not sure if this is worth for documentation, it seems to be a general issue of some pages that heavily depend on JavaScript and not an issue of vimb or webkit. |
Yep, that fixed it :-) I did spend some time fiddling around to find the solution, so a mention in a FAQ or such would be nice. Case closed. |
As you where confrontated with the issue and solved it, I'll ask you to write a little section for the FAQ-Page. You can post it here and I'll publish it. |
Yes, I could do that (I like the way you inspire cooperation here). But - the issue has returned... It seems the session times out much earlier than dwb, luakit or uzbl (all tabbed) and that the only session that in fact doesn't time out is facebook (the others that time out during a day is: ebay, wordpress, HP forum, LinkedIn, GitHub and Google). |
I think you should set |
I set it to 48000, but the issue remains (except LinkedIn which is now fine like Facebook). There is no such issue with dwb or luakit or uzbl-tabbed. If the issue cannot be fixed, it makes it even more importnt to have the formfiller for vimb... |
I'm a little confused. There are two issues we discussed about.
The first issues is fixed for you, by some change you applied to your config file. Right? On which pages can I check the second issue? And what means that it still exists? When is the session lost? |
Let me jump into this issue too. It’s really hard to tell what is going on and when. I’ll try to keep records (just logged into Twitter). |
By the way, are you saying that this might have something to do with session cookies? I could neither figure out what does |
Before logging into Twitter I had |
The The explanation to the cookies file formant can be found at : http://www.cookiecentral.com/faq/#3.5 |
Hmmm... anybody make any progress on this issue, or come up with a workaround? I'm liking vimb a lot but this issue is a killer if you're using 2-factor auth, for google I need to keep re-entering verification codes randomly if I open a google page in a new tab (window). Glad to see it's not just me but would be great to find a solution... |
In case of google it should be enough to Are you not logged in in a new openend window or does the session expire to fast? |
@shioyama Have you tried to |
@fanglingsu I now have:
And I still find that this happens, although I can't pinpoint the cause. Github seems to work ok, but on some other sites I also have to login again. Google is the biggest pain because I have to re-enter a validation code. Just now I restarted my laptop with those settings so I should have an existing cookie and not have to login, but again I'm redirected to the login page. Not quite sure what's going on, I'll try to dig into what's actually happening in the cookies file. |
Just to check, if I have |
So for example, right now I have two windows open side-by-side, one logged-in to gmail and one which is redirecting me to the gmail sign-in. I can check in the new window and see that the config settings are there and set correctly. I've tried various different things but always I'm redirected to login, while the other window remains logged in (even if I reload it). One thing I do notice is that my cookies file is very short, which is not what I would expect if I'm telling vimb to keep all my cookies for a very long time. I do see google cookies in there, not sure if they are enough... will have to investigate further. |
@shioyama Did you check with But google bahves a litte strange I think. I've logged in to google and started another vimb instance from cli to google and was logged in there. After logout on the second instance I still kept logged in in the first instance. |
It's strange because it seems that sometimes it works, other times it does not. Right now I am able to open tabs and login persists, but earlier today it was not working. It seems like something triggers vimb to stop reading the cookie from the file (or maybe the cookie is removed, not sure yet because hard to see exactly which one is which).
I checked with that and then with 48000. Is there any reason a smaller value would work whereas a larger one would not? I just figured set it as high as possible. |
Ok sorry, I was getting Ah but now I'm finding that it's logging me out really fast... |
Ok it seems the combination of |
Oh, interesting, In my opinion the |
No I set it to a positive value, but I found that it would suddenly expire. I've now set it to a very very high value and testing with that, because not setting it at all allowed cookies to expire after a while. At this point I'm really not sure what is causing what. Is there any chance that time may be calculated incorrectly? Maybe time-zone related? Just grasping for straws here. |
If you don't set any |
Thanks, this seems to be working now. Although I'm not so happy to be storing all my cookies for such a long time, I'm just happy that I don't need to keep re-entering two-factor auth codes all the time. Would be great to implement webkit2 if that would allow a more natural way to do this. The upside to all this is that I got around to actually digging into the vimb code a bit and would like to help contribute if I can, there are still a couple other bugs like #214 that driving me a bit nuts. Thanks for all your help! |
Ah, you know this is still not working. Something is re-setting my cookies, not really sure what it could be but it seems to affect more than just gmail/google. I'll try to pinpoint the issue but would be eager to hear if anyone else is experiencing this... perhaps related to my config or something. |
Maybe google is resetting some of the cookies because something seems to look like an hacking attempt, because the user agent for the same session is considered to be wrong. Oh, that is only an uneducated guess. |
No it's not just google but seemingly all cookies. I've found an ugly workaround now where I just save my cookies when I login, then if they get reset I just copy back the previous cookie file, that seems to work. But I still can't pinpoint what is causing them to get reset in the first place. Maybe something to do with multiple processes trying to edit the cookies file at once? No idea. Maybe specific to my setup. |
Closed this because this is now continued in #235. |
I am logged in to e.g. eBay and follow a link with middle-click to open the link in a new window/tab (window manager = i3). New window/tab opens but I have to log in to eBay again.
The text was updated successfully, but these errors were encountered: