如何在不违反会话的情况下在导航栏中添加重新加载按钮?
How to add a reload button in nav bar without violating session?
所以我尝试通过以下代码中的导航栏元素重新加载:
<div class = "navbar navbar-default navbar-static-top">
<div class ="container">
<a href="settings.php" class = "navbar-brand" >
<img class = "navbar-brand" style="padding: 0.5em;width: 3.8em; height: 3.8em; float: left; margin-top: -1.25em" src="menuconreal.png">
</a>
<div class = "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li><a href = "login.php">RELOAD</a></li>
<li><a href = "index.php">LOG OUT</a></li>
</ul>
</div>
</div>
</div>
但是在按下重新加载时,我收到错误 "You do not have permission to view this page",这可能是由于会话冲突。那我该如何解决呢?
<div class = "navbar navbar-default navbar-static-top">
<div class ="container">
<a href="settings.php" class = "navbar-brand" >
<img class = "navbar-brand" style="padding: 0.5em;width: 3.8em; height: 3.8em; float: left; margin-top: -1.25em" src="menuconreal.png">
</a>
<div class = "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li><a onclick="window.location.reload();">RELOAD</a></li>
<li><a href = "index.php">LOG OUT</a></li>
</ul>
</div>
</div>
</div>
所以我尝试通过以下代码中的导航栏元素重新加载:
<div class = "navbar navbar-default navbar-static-top">
<div class ="container">
<a href="settings.php" class = "navbar-brand" >
<img class = "navbar-brand" style="padding: 0.5em;width: 3.8em; height: 3.8em; float: left; margin-top: -1.25em" src="menuconreal.png">
</a>
<div class = "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li><a href = "login.php">RELOAD</a></li>
<li><a href = "index.php">LOG OUT</a></li>
</ul>
</div>
</div>
</div>
但是在按下重新加载时,我收到错误 "You do not have permission to view this page",这可能是由于会话冲突。那我该如何解决呢?
<div class = "navbar navbar-default navbar-static-top">
<div class ="container">
<a href="settings.php" class = "navbar-brand" >
<img class = "navbar-brand" style="padding: 0.5em;width: 3.8em; height: 3.8em; float: left; margin-top: -1.25em" src="menuconreal.png">
</a>
<div class = "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li><a onclick="window.location.reload();">RELOAD</a></li>
<li><a href = "index.php">LOG OUT</a></li>
</ul>
</div>
</div>
</div>