PHP sessions are unsetting when i click href php code

Sriram - Aug 2, 2016 at 02:01 PM
 Blocked Profile - Aug 2, 2016 at 05:07 PM
In index.php i am including 2 files
1. header.php
2. mainpage.php

in header .php I wrote code on visit it shows Welcome User
and also header.php have two links
1.login(drop down windows using bootstrap) ..if he press login...login form loads.. and
user fill form and submit..if valid details... user name will print...and
$_SESSION['loggedin'] is setting
2.after using login..mainpage.php will find loggedin session is some link i am giving
1.<a href="index.php?a='info'" rel="nofollow" target="_blank">information</a>
2.<a href="index.php?a=" rel="nofollow" target="_blank"edit"">Edit</a>

when i lick any one of link.. page is reloading and all session are unsetting..

How can i Over come this problem

1 response

Blocked Profile
Aug 2, 2016 at 05:07 PM
Well not certain, but your link is broken:

Remove the '


<a href="index.php?a=info" rel="nofollow" target="_blank">


<a href="index.php" rel="nofollow" target="_blank">

Have fun!
It's kind of fun to do the impossible! -Walter Elias Disney