A bit of a general question.
In my website I have a login feature. User details are stored in a MYSQL database and interacted with PHP. Passwords are stored as a salted md5 hash sum. (All the norm there)
Normally I would use sessions to track logins however my hosting company didn't like them for some reason. But I had a quick fix.
When you login it creates a cookie of the username and password you logged in with + an expirey time of an hour. Every time a page loads it checks these details against the database. I can't see any floors other than intercepting packets etc. Is this a viable solution to my problem, or is it a bit risky regarding security?
Code snippets seem irrelevant, but I can provide. Thank You for any tips with this matter.