Updated code

Input use function pinout
Added test cookie and session