Skip to main content

Posts

Showing posts with the label PHP

Wordpress on Windows Azure

Wordpress on Windows Azure : "Wordpress on Windows Azure". When I was searching Wordpress for Microsoft Windows Azure, I came across this demo site. Unfortunately, I couldn't find any documentations on how to setup a Wordpress blog on Windows Azure yet. Windows 7 is a big hit on operating system market, the next big hit from Microsoft is its cloud computing system --Windows Azure. This is the latest operating system designed for developers to write applications in Microsoft's .NET programming language. Unlike programs that require a Windows desktop machine to run, while Azure allows developers to write applications that will run in a browser and communicate with servers in one of Microsoft's massive data centers via the Internet. With WP come on board the Azure platform, many others will definitely follow. But how long shall we wait for another ready-made popular web application free for use?

Session hijacking

One of the problems with sessions is that, by default, they rely on the use of a cookie to work properly. When a session is started, it sends a cookie that resides in the user's Web browser. Every subsequent page that calls session_start() makes use of the cookie, which contains the session name and ID, to know to use an existing session and not to create a new one. The problem is that users may have cookies turned off in their Web browser or may not accept the cookie because they do not understand its purpose. If this is the case, PHP will create a new session for each page and none of the registered variables will be accessible. You can use sessions without cookies by passing along the session name and ID from page to page. This is simple to do, but if you forget to pass the session in only one instance, the entire process is shot. To pass the session name from page to page, you can use the SID constant, which stands for session ID and has a value like session_name=session_ID...