I use permanent cookie login on my website. But if one has not activated cookies
he can't log in. How can I do a permanent cookie-login and if that doesn't work
it should use login without cookie. who can help me?

One more question: I create the cookie for one Year. Is it necessary
to keep the data of my session-database for one year either? Or can I
purge this data after one day and if the user returns to my website
after ten days he is still logged in?