Skip to content

apply @LukasReschke's cookie changes, hopefully finally fix #854 - #3985

Merged
MorrisJobke merged 2 commits into
masterfrom
cookie-past2
Jul 10, 2013
Merged

MorrisJobke merged 2 commits into
masterfrom
cookie-past2

Conversation

@jancborchardt

Copy link
Copy Markdown
Contributor

This supersedes @LukasReschke’s cookie-past branch, hopefully fixing #854.

Please test, everyone who was involved in the original issue: @tanghus @karlitschek @RandolfCarter @almyz125 @mehturt

@VicDeo

VicDeo commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

Makes sense but doesn't fix an issue for me.
FF 22.0
Steps to reproduce:

  1. Login with 'remember' checkbox checked
  2. Logout

You'll see until the cookies are cleared manually:

Automatic logon rejected!
If you did not change your password recently, your account may be compromised!
Please change your password to secure your account again.

Comment thread lib/user/session.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally path should match to unset these cookies properly, e.g.:
setcookie('oc_username', '', time()-3600, \OC::$WEBROOT);

@tanghus

tanghus commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

Same experience as you @VicDeo, but if I add \OC::$WEBROOT as path it works.
@jancborchardt

@tanghus

tanghus commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

Should I push that change?

@jancborchardt

Copy link
Copy Markdown
Contributor Author

Yes, if there’s a change which makes this work then please do it @tanghus :) I’m no PHP dev.

Also @VicDeo: Until you clear the cookies manually you see the warning – and you can also not log in, right?

@VicDeo

VicDeo commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

@jancborchardt true story. I even installed an Firefox addon cleaning current site cookies for that 👿

@tanghus

tanghus commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

I even installed an Firefox addon cleaning current site cookies for that

You have a link for that @VicDeo ?

@tanghus

tanghus commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

@jancborchardt @VicDeo Changes pushed.

@VicDeo

VicDeo commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

@tanghus

tanghus commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

it's simple and simply does the job :)

Excellent. Thx :)

@jancborchardt

Copy link
Copy Markdown
Contributor Author

Well, does this pull request now fix it too? No one should need that addon, at least not for ownCloud.

@VicDeo

VicDeo commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

I +1'ed it already

#3985 (comment) is no longer reproducible on this branch

@MorrisJobke

Copy link
Copy Markdown
Contributor

Reproducable on FF22 (on Chromium it doesn't occur). PR works as expected 👍

MorrisJobke added a commit that referenced this pull request Jul 10, 2013
apply @LukasReschke's cookie changes, hopefully finally fix #854
@MorrisJobke
MorrisJobke merged commit e2a5af4 into master Jul 10, 2013
@MorrisJobke
MorrisJobke deleted the cookie-past2 branch July 10, 2013 16:08
@MorrisJobke

Copy link
Copy Markdown
Contributor

@jancborchardt What about the wording of the warning? Should it remain as it is?

@MorrisJobke

Copy link
Copy Markdown
Contributor

I've deleted the cookie-past branch

@jancborchardt

Copy link
Copy Markdown
Contributor Author

Yeah, I guess the warning is ok for now. In which cases does it appear anyway? @LukasReschke

DeepDiver1975 added a commit that referenced this pull request Oct 31, 2013
Backport of  #3985 (Invalid remember me token)
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants