Edgewall Software

Ticket #6121: ticket_6121_workaround.diff

File ticket_6121_workaround.diff, 1.1 KB (added by trebor74hr@…, 4 years ago)

workaround

  • trac/web/auth.py

    diff -r 274c193231b9 trac/web/auth.py
    a b class LoginModule(Component): 
    158158        # cookies older than 10 days 
    159159 
    160160        db = self.env.get_db_cnx() 
    161161 
    162162        cursor = db.cursor() 
    163163 
     164        # QUESTION: why to logout from other ip-s? ulr1 071121  
    164165 
    165166        cursor.execute("DELETE FROM auth_cookie WHERE name=%s OR time < %s", 
    166167 
    167168                       (req.authname, int(time.time()) - 86400 * 10))