I'm getting a problem with my current system,
In my database, I've a table, mapuser which contains two fields, PHPSESSID and UserId. I'm preferring to persisting my session in the database. The problem I'm getting is that everytime I'm completly closing my browser and opening it again, I'm getting a new PHPSESSID and thus invalidating my previous session.
I'm getting this error will all browser I'm using
If you want to persist the session id, you could store it in a cookie (encrypted!). That way, you can compare it with the one stored in the db.