hmm...that sounds odd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in since your variables aren't registered. hope that helps
?>odd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, iodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the odd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in sodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't aodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in since your variables ar one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyeif it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that shouodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in since yodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyodd, because I just tried it on one of my small pages and it works fine. try this and see if it helps
for each page I want restricted access to, I put this code at the top of each page
Code: Select all
<?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in since your variables aren't registered. hope that helps
?><?php
if(isset($username) and isset($password))
{
echo "You are logged in";
}
else
{
echo "You are not logged in";
echo "<a href='login.php'>Go Login</a>";
}
that should work because if you destroyed the session, then try to go back, it shouldn't allow you in since your variables aren't registered. hope that helps
?>