#NEWLINE# def set_login_cookie( email ) : #NEWLINE# #INDENT# t = datetime . datetime ( * time . gmtime ( ) [ : 6 ] ) . isoformat ( ) #NEWLINE# text = ( '%s,%s' % ( email , t ) ) #NEWLINE# text += ( ',' + generate_salted_hash ( text ) ) #NEWLINE# web . setcookie ( 'session' , text )