#-*- coding: utf-8 -*-
from threading import Thread
from time import sleep
def counter():
i = 0
while(True):
sleep(0.5)
i += 1
print(i)
def command():
while(True):
input('Command: ')
threads = [
Thread(target = counter),
Thread(target = command)
]
for thread in threads:
thread.start()
for thread in threads:
thread.join()
<?php
session_start();
$_SESSION['user'] = [
'id' => 1,
'login' => 'login',
'password' => 'password'
];
$page->evaluate('window.location.reload();')->waitForPageReload();.
Пипец.