-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Commit 97a7dab
Fixed #6941 -- When logging a user out, or when logging in with an existing
session and a different user id to the current session owner, flush the session
data to avoid leakage. Logging in and moving from an anonymous user to a
validated user still keeps existing session data.
Backwards incompatible if you were assuming sessions persisted past logout.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8343 bcc190cf-cafb-0310-a4f2-bffc1f526a371 parent 5e8efa9 commit 97a7dab
File tree
3 files changed
+21
-11
lines changed- django/contrib/auth
- docs
3 files changed
+21
-11
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
56 | 60 |
| |
57 | 61 |
| |
58 | 62 |
| |
59 | 63 |
| |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
63 | - | ||
67 | + | ||
68 | + | ||
64 | 69 |
| |
65 | - | ||
66 | - | ||
67 | - | ||
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - | ||
70 | + | ||
73 | 71 |
| |
74 | 72 |
| |
75 | 73 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
429 | + | ||
430 | + | ||
431 | + | ||
432 | + | ||
433 | + | ||
434 | + | ||
435 | + | ||
429 | 436 |
| |
430 | 437 |
| |
431 | 438 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
120 | - | ||
121 | - | ||
120 | + | ||
121 | + | ||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
233 | 238 |
| |
234 | 239 |
| |
235 | 240 |
| |
|
0 commit comments