You can store the session in $_SESSION... in your login form, when the user logs in declare a session variable like
PHP Code:
$_SESSION['sid'] = $sid; // U already have the $sid i think,
PHP Code:
session_start();
PHP Code:
$sid = $_GET['sid'];
PHP Code:
$sid = $_SESSION['sid'];
Finally, avoid passing the sid in URL, delete every $sid, which use with URL..
i think i need to know how to use search box properly
Leave a comment: