Login | Register | FAQ
Anonymous

login prob.

+ Post a reply

2 posts Page 1 of 1


login prob.

by atulmundaware » Tue Jul 15, 2014 4:06 am

when i create login sessions and when i logout then i logouts but if i go back using browser i shows again login home page
User avatar

atulmundaware

  • Posts: 1
  • Joined: Tue Jul 15, 2014 3:59 am

Re: login prob.

by XainPro » Tue Jul 15, 2014 4:32 am

add something like this to top of your login page

<?php
session_start();
if(isset($_SESSION['login'])) {
header("location:index.php");
}

?>
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1