Web development may not be around in 20-40 years, certainly not in the way it's done today. That said, I'm sure that type of technical ability will be in demand, you may have to learn some new things.
Well, I think the internet will be around in 20-40 years, and if you're not constantly learning new skills then you're dead in the water anyways. I just don't see retirement as the goal.