Skip to content
Snippets Groups Projects
Commit 803cd3c5 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Do not cache pages that shows attributes (Contributor: Thomas Graff)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1142 44740490-163a-0410-bde0-09ae8108e29a
parent ed064c1d
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,16 @@
* @version $Id$
*/
/*
* Explisit instruct consent page to send no-cache header to browsers
* to make sure user attribute information is not store on client disk.
*
* In an vanilla apache-php installation is the php variables set to:
* session.cache_limiter = nocache
* so this is just to make sure.
*/
session_cache_limiter('nocache');
SimpleSAML_Logger::info('Consent - getconsent: Accessing consent interface');
if (!array_key_exists('StateId', $_REQUEST)) {
......@@ -133,8 +143,6 @@ if (array_key_exists('consent:store', $state)) {
$t->data['usestorage'] = FALSE;
}
$t->show();
exit;
......
......@@ -6,6 +6,17 @@
*/
require_once('../_include.php');
/*
* Explisit instruct consent page to send no-cache header to browsers
* to make sure user attribute information is not store on client disk.
*
* In an vanilla apache-php installation is the php variables set to:
* session.cache_limiter = nocache
* so this is just to make sure.
*/
session_cache_limiter('nocache');
/* Load simpleSAMLphp, configuration and metadata */
$config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment