I have a login page in localhost(website link : www.csoftindia.net) . When I logged in it is showing alternate html "you are logged in as..." but when moving another page like news or other page session is lost either or it is not destroying session.
Ok I am giving the user :firstname.lastname@example.org and password :328023 of an website www.csoft.com where you can see the changes .
I am unsetting on the logout page.If you see the above will be clear what I want I think.
Hi Baig ,
Yes ,this is done.
I included "include("config.php"); where session is started . Now the code written in every pages as :
if(!empty($_REQUEST['txtuser']) && !empty($_REQUEST['txtpassword']))
$sql="select * from mytable where user='$textuser' and password='$texstpassword'";
$row = 0;
// NOT LOGGED IN CODE HERE
logged code and html
and when logout the following code in logout.php page as follows :
and that's it.
skype id :subrata.nandi4