cookie and session

add cookie and session
simple demo for register