Ok i have a user auth system, where the user can log in, log out, change password, activation, register, forgot pass etc...
I use to use a system of sessions throughout my website... Where we can find out the username etc thru sessions. However using some different scripts i found, sessions easily forgetting, or not exactly remembering the session for 30 days etc...
this is because i do this when i log on:
set_session_cookie_params(time()+2500000); etc...
so that it remembers the session information.
However it forgets at times... Or doesn't work correctly
The Security issue:
I also found that once a hacker or anything finds out your temp folder, or some insecurity in your website could create a gateway for someone to log into your website without even registering.
Now i have no idea how SSL and stuff work... So anyway i decided to just send an encrypted cookie to the user's computer
then the script will check for the cookie, and it will decrypt it, and find out the username/email/etc...
But are they really a security risk? Isn't this system better? to use a cookie, and database ... for the "Save username and password?" checkbox.????
Are there safer ways to authorize someone?
do sessions have disadvantages with saving info, or easily hacked thru "http://example/index.php?PHPSESSID=523242352352352"
that sort of thing?