Skip to content

Commit 2cd355c

Browse files
committed
Added objects to the session in DjangoSessionCacheAdapter.sync()
1 parent 6a85573 commit 2cd355c

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)