Example of using session cookies throughout code