def confirm_login():
 session['_fresh'] = True
 session['_id'] = _create_identifier()
 user_login_confirmed.send(current_app._get_current_object())

def confirm_login ( ) : session [ '_fresh' ] = True session [ '_id' ] = _create_identifier ( ) user_login_confirmed . send ( current_app . _get_current_object ( ) )
this sets the current session as fresh .