I made it work.
Got to fix some things.
If I set the autologin it is nessecary to use the right login data. if not, on the failed page you need to delete the stored wrong cookies.
And, you also need to create a reCHECK the auto login if the user dont want it anymore.
So i decided just to keep the remember me check box.
I think, the biggest problem is the storing of the password on the machine.
- when i used the autologin i sored the password cryped to the cookie and dont use an crypting in the authentification.
- with the remember me checkbox I need to store the password encryped to the machine, thats dangerous.
thanks so much to help me understand that thing.