128 Chapter 4 Web Application Concepts Figure 4.1
130 Chapter 4 Web Application Concepts Details on session ID propagation in real life will follow a bit later. First, we d like to show you another way of session ID propagation, arguably the most geeky method. DNS Tricks The need to tag all links in an application with the session ID can be really annoying. PHP 4.0 has a way to do it automatically, but it may be a severe performance hit on larger sites, and it doesn t work with PHP 3.0. We may have a solution for you. Up front, the caveats:You need to be able to change the DNS record for your server, and the server you want to use for this kind of session ID propagation needs its own, static IP. Name-based virtual hosting won t work here. You meet these requirements? Great. If you re proficient with name servers, you may know that wildcard entries can be used in DNS configuration.These entries usually map any arbitrary hostname to a specific IP; for example, we ve got this entry to direct requests for everything below phpwebdev.com to the IP 194.242.199.228: *.phpwebdev.com IN A 194.242.199.228 A request for http://this.is.one.cool.domain.phpwebdev.com will be redirected to the specified IP.Since the hostname is arbitrary,Apache must be configured to handle the IP as opposed to name-based virtual hosting, where the hostname must be fixed and known. Our Apache configuration looks like this:
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Cheap Web Hosting services