Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CodeIgniter creating a lot of session files #1518

Conversation

sudwebdesign
Copy link

Fix When login CI call sess_regenerate()
but do not apply config 'sess_regenerate_destroy' & always create new file

After this, a session folder have one file by user logged
and clean old session files in storage/sessions folder

To test : in application/config.php
$config['sess_time_to_update'] = 3;

see
https://bobcares.com/blog/codeigniter-generating-too-many-sessions-files-resolved

Fix When login CI call sess_regenerate() but do not apply
config 'sess_regenerate_destroy' & always create new file

After this, a session folder have one file by user logged
and clean old session files in storage/sessions folder

To test : in application/config.php
`$config['sess_time_to_update'] = 3;`

see
https://bobcares.com/blog/codeigniter-generating-too-many-sessions-files-resolved
Fix bad transtyped bool
throw error on login
session_regenerate_id(): Passing null to parameter alextselegidis#1
($delete_old_session) of type bool is deprecated
@alextselegidis
Copy link
Owner

Hello!

Thanks for posting this.

I will take a closer looks and merge accordingly.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

@alextselegidis alextselegidis merged commit 4c7ca40 into alextselegidis:develop May 11, 2024
@alextselegidis
Copy link
Owner

Merged

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants