Common .htaccess code snippets

.htaccess is a configuration file which is used on the web servers running the Apache Web Server. The .htaccess file is automatically loaded by the Web Server if there any and then the .htaccess file is executed by the Web Server. The .htaccess files can be used to change the configuration of the Web Server to add some additional functionality or remove some irrelevant features of the Apache Web Server.

Continue reading

Learn about Yii Framework Session Handling

PHP Session variable is generally used to store data for the users session and session variables will be accessible to each and every  page of your application. That means if an application needs to access some informations for most of the pages then it can store those informations in its Session.

Yii Framework ships with a rich library to handle Session variable. Yii Framework Session variable can accessed and assigned very easily.

Continue reading