Hi,

I use the "login.php" to login to my site, i want store all the sessions in "sessions.php" after login process. When i go to other pages, i simply want to require "sessions.php" to be able to use sessions in those all pages. Is this logis possible? If so, how can do it?

Thanks

i got understand your problem like this:

<?
session_start();
if(empty($_SESSION['loginuser']))
 {
  header('location:index.php'); 
 }
?>

you have to include this page in all your pages,which must require login to proceed...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.