I stored a value of id in first php page as,
<?php
...
$_SESSION["UID"] = $row["JS_ID"];
...
?>
this is the 2nd page,
<?php
...
session_start();
$uid=$_SESSION["UID"];
...
?>
when am passing it as value it works,,but when I'm running my project, it's saying error as, "Undefined index UID"..Is there any way to clear it out?
session_start()in your first page? If not, your session isn't established and your variable will be lost.print_r($_SESSION)and temme what is your output..