Track session id with cookie

PythonPython Forum LeaderThe Royal RAM
Im building a membership system which currently uses sessions. With sessions when the user closes the browser the sessions are no longer available therefore they are logged out...


But Ive read that there is a way so that when a user logs in and the session is set a cookie is also set which contains that sessions id. Then if the user closes the browser and visits the page again the cookie session id is pulled and then it checks to see if there is a session with the same id on the server - if there is they are still logged in - if not then they are not logged in...

How is this done?

Thanks

The Royal Ram

Comments

Sign In or Register to comment.