This is a simple demo, showing how to do session caching with Amazon ElastiCache using PHP.
e.g. yum install php httpd php-pecl-memcache
session.save_handler = memcache session.save_path = "tcp://elasticache-memcache-node1-endpoint:11211,tcp://elasticache-memcache-node2-endpoint:11211, etc."
memcache.hash_strategy = consistent memcache.allow_failover = 1 memcache.session_redundancy = 3
e.g. etc/init.d/httpd restart
- index.php (basic login page that will capture un/pw and redirect to login.php)
- login.php (stores session variables. Note: Its not authenticating the user, this is just a demo to show how to use the session
- home.php (if session variables are set, home.php will load. Otherwise will redirect user back to index.php