i got it....
The Update code is....
include 'connection.php';
try
{
$user=$_POST['user'];
$pass=$_POST['password'];
$secpss=password_hash($pass,PASSWORD_DEFAULT);
$smt=$conn->prepare("SELECT * FROM user WHERE User='$user'");
$smt->execute();
$result=$smt->fetch(PDO::FETCH_OBJ);
$prev=$result->Password;
if(password_verify($pass,$prev))
{
header('location:welcome.php');
}
else
{
header('location:signin.php');
}
}
catch(ErrorException $e)
{
$e->getMessage();
}
?>
this is the correct process,, and the main thing is that mostly we could make a simple mistake like coma(,) or data base column length. In my case i thing that i could provide a correct length of password but accedntly it was a short length, i correct it and follow the php 5.5 documentation and the problem is solved..
By the way thanks all of your replay...