Secure Static Session Class (Handles Arrays)

/ Published in: PHP
Save to your folder(s)

This is a static session wrapper that handles single variables and arrays. It allows setting, resetting, and deleting session variables (without destroying the session). It regenerates the session id every time a session is started to prevent session hijacking. See Examples of use below the code or (

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.