Skip to content

Commit 1fcdada

Browse files
committed
Merge pull request #11 from ajsmilutin/master
Fix faulty session invalidation on sync
2 parents 6a85573 + 2cd355c commit 1fcdada

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

djangosaml2/cache.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def _set_objects(self, objects):
3737
def sync(self):
3838
# Changes in inner objects do not cause session invalidation
3939
# https://docs.djangoproject.com/en/1.9/topics/http/sessions/#when-sessions-are-saved
40+
41+
#add objects to session
42+
self._set_objects(self)
43+
#invalidate session
4044
self.session.modified = True
4145

4246

0 commit comments

Comments
 (0)