>>8
You code in a web framework. Here's a simple excesize: using sockets and select in C produce a small server to service http requests. Good, now you can change the response that server gives based on whatever you want (eg cookies [=sessions], ip address, database), ie server side programming. You don't have to write your own server though, since existing servers + web frameworks will let you tie in your own code at the appropriate places.