Po prostu po przejściu na podstronę od razu znika sesja.
Oto kody:
login.php
<?php include('header.php'); include('config.php'); if(mysql_num_rows(mysql_query("SELECT 1 FROM users WHERE login='".$_POST['login']."' AND password='".$_POST['password']."' AND activation='1';"))==1){ $_SESSION['login']==$_POST['login']; }else{ } include('footer.php'); ?>
header.php
<?php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="Tu poznasz tajniki programowania oraz webmasteringu. Każdego chętnego człowieka zmienimy tu w twórce wielkich portali. " /> <meta name="Keywords" content="kurs, php, html, xhtml, delphi, c++, c#, c, pascal, turbo pascal, object pascal, nauka, webmastering, programowanie, tworzenie stron, tworzenie stron internetowych" /> <link rel="Stylesheet" type="text/css" href="style.css" /> <link rel="Shortcut icon" href="favicon.ico" /> <title>Sueroski</title> </head> <body> <div id="header"><img src="logo.png" alt="Logo" /></div> <div id="rightpanel"><?php include('rightpanel.php'); ?></div> <div id="menu"><?php include('menu.php'); ?></div> <div id="text">
footer.php
</div><div id="footer">Copyright© 2010 by Sueroski</div> </body> </html> <?php ?>
Gdzie popełniam błąd?
Proszę o pomoc