there is need to pass values to a lightbox in a project i am working on , i know how to pass a variable through GET and through $_SESSION, but i wanted to know if there is a more secure way to do so .
$_GET shows value what are being passed when we use firebug or any developer tools . but $_SESSION dosen’t . if i use $_SESSION then is there any drawback of using it ? or there is a more secure method which i am un aware of . i tried both methods and both are working fine as it should be , but can anyone clear me up with that using $_SESSION is much better or not.
for eg
www.example.com/quick_message/quick_msg.php?id=23
i am trying to protect the value 23
if i use $_SESSION this dosent appears on the link
www.example.com/quick_message/quick_msg.php
and also i can pass it to the colorbox and get the value inside colorbox by using $id=$_SESSION[‘id];
you may use
POSTmethod for secure passed through$_POSTor$_REQUEST