How to get the cookie value in asp.net website

I am creating a cookie and storing the value of username after succesfull login. How can I access the cookie when the website is opened. If the cookie exist I want to fill the username text box from the cookie value. And how to decrypt the value to get the username. I am doing server side validation by getting the userdetails from the database. I am using vs 2010 with c#

notify client from server

If I have an asp.net application, and I want to notify the user when something changes on the server, how do I do this.
The same thing with a silverlight client. For the silverlight client is there some form of subscribing to an event on the server from the silverlight client?

empty website and git

hi as am a newbie to GIT with visual studio ,
I’m working with an n-tier website with multiple projects and at first i make it as an empty website , so the visual studio make a directory to the solution in Projects folders for VS2012 at documents and The BLL and DAL and the website pages itself at websites directory for visual studio main directory .
so when i trying to add the solution the source control this message shown up :