id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 3776,user sessions,upadhyay@…,nobody,"Django has anonymous sessions, tracked by cookies. The session can not be accessed from a different machine for the same user, which drastically reduces the usefulness of sessions. Another approach to save something persistently for a user it to update the UserProfile model and create a new row for the same, but this will require altering the corresponding table every time we realize we have one more thing to save. What I am proposing is this: we update the User model, and add a ""session_data = models.TextField(_('session data'))"" to it. Additionally in User.__init__ we add a ""self.session = SessionWrapper('user:%s' % self.id)"". We will have to add a .save() method on django.contrib.sessions.middleware.SessionWrapper, and optionally update django.contrib.sessions.middleware.SessionMiddleware.process_response to call request.user.session.save() if request.user.session.modified is true. ",,closed,Contrib apps,dev,,wontfix,,,Design decision needed,0,0,0,0,0,0