Sessions in PHP

A session is a way to store information (in variables) to be used across multiple pages. Unlike a cookie, the information is not stored on the users computer. The most fundamental way to explain what a sessions is like is to imagine the following scenario: You are working with an application. You open it, make some changes, and then you close it.
That is a session in it’s simplest form.

www in htaccess

Many customers at some point request to force either the www or non-www version of their site to display in their visitor’s browser. For example always have www.example.com or simply example.com display in their visitor’s web browser. There is a common thought that forcing one format is better for search engine optimization.

Change Index page in htaccess

The server looks for specifically named files as the first page of your website, also known as the index page. The default order of index file names our particular servers look through is index.htm, index.html, index.php, and finallydefault.htm. You can change the name of the index file your account looks for by altering the .htaccess file.