Destroying a specific session in Code Igniter
Create a new column in the ci_session table. ALTER TABLE `yourdatabase`.`ci_sessions` ADD COLUMN `userid` VARCHAR(45) NULL AFTER `user_data` ; Then in your login function get the id from your login process and before adding the userdata information to the session do: /* Delete any existing sessions with the current userid session. Note – a new … Read more