Why use basic auth over cookies?
When using cookies you're at least abel to hash the values stored in the cookies (sent from user agent -> server in each http request).
When using basic auth., the username + password are sent in clear text to the server (for every http request). So basically this is lowering the application security (at least unless you're using secure http, tls or ssl)...
HTTP Authentication: Basic and Digest Access Authentication