I have a problem with sessions, my php code works perfectly on easyPhp but not on MAMP. With easyPhp I have to modify the php.ini file from session.auto_start = 0 to session.auto_start = 1. What should I do to make it work with MAMP?
For MAMP, the default php.ini setting is session.auto_start = 0. So I'm assuming you wish to modify it to session.auto_start = 1 as you did for easyPHP.
In order to do so, follow these steps:
session.auto_start = 0session.auto_start = 1Once you change any of the MAMP configuration defaults, MAMP will generate an appropriate configuration file in the following subdirectory: ~/Library/Application\ Support/appsolute/MAMP\ PRO/templates/, so you can edit those files directly, instead of going through MAMP.
* The php.ini file you select should match the version you're running through MAMP (selected under server > PHP, in the main window).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With