I was just wondering if one can't achieve the same what sessions achieve just with the setcookie() function.

For example:

Code:
setcookie( "uname", "$uname", time() + (3600 * 24 * 56) );
setcookie("upassword", "$upassword", time() + (3600 * 24 * 56));

// have code here to check if $uname and $password are valid

// if yes, display content, if not, display error message
Well, the disadvantages are that you can't have a "remember me?" thing and also the browser must support cookies or else you would have to login on every page you visit.

Meh, I just figured the disadvantages out myself, posting this nevertheless to get some more input.