noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 04/04: Force the reload to avoid the cache :


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/04: Force the reload to avoid the cache : problem with apache 2.4 and cache
Date: Sat, 29 Aug 2015 14:53:57 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 25a649ad6105f7d5af94f815f611e6e0160e50f8
Author: Dany De Bontridder <address@hidden>
Date:   Sat Aug 29 13:27:27 2015 +0200

    Force the reload to avoid the cache : problem with apache 2.4 and cache
---
 html/login.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/html/login.php b/html/login.php
index 2bae355..5b8725f 100644
--- a/html/login.php
+++ b/html/login.php
@@ -68,7 +68,8 @@ if (  isset ($_POST["p_user"] ) )
            exit();
          }
       }
-      $backurl='user_login.php';
+      // force the nocache
+      $backurl='user_login.php?v='.microtime(true);
       if ( isset ($_POST['backurl'])) {
           $backurl=urldecode($_POST['backurl']);
       }
@@ -96,7 +97,7 @@ else
     $User=new User($rep);
     $User->Check();
 
-    echo "<META HTTP-EQUIV=\"REFRESH\" content=\"0;url=user_login.php\">";
+    echo "<META HTTP-EQUIV=\"REFRESH\" 
content=\"0;url=user_login.php?v=".microtime(true)."\">";
 }
 html_page_stop();
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]