Android, Java, PHP, Linux, Databases and other funny things.
I'm doing, I'm learning, I post it here.
Wednesday, October 17, 2012
PHP session timeout cookie lifetime
There are many ways to set cookie based session timeout in PHP. You can edit your php.ini or put it in .htaccess but I choose for today this piece of code:
<?php
ini_set('session.gc_maxlifetime', 172800);
ini_set('session.cookie_lifetime', 172800);
session_start();
?>
The session above will be valid for 2 days.
Friday, October 12, 2012
Don't track me - Google Analytics
I have many websites and I don't want to be tracked by my own Google Analytics code.
This Add-On for Google Chrome should deactivate Google Analytics at all
This Add-On for Google Chrome should deactivate Google Analytics at all
Subscribe to:
Posts (Atom)