Good evening,
I am attempting to have a user be automatically logged in via a php script. I am using CURL to access the API, which appears to log in the user properly, then set the session cookie "pwg_id" that is returned by CURL. This session also appears to be active in the database, however visiting the gallery does not result in the user being logged in. Aside from calling pwg.session.login and ensuring that a cookie with the session is set, what else could be done to ensure that the user is automatically logged in upon visiting the gallery?
Offline
sorry we have a mechanism against session hijacking based on partial ip address so this is not going to work unless you manually tweak teh code on your site to remove this protections
Offline
thanks for this one.
Offline
hey ....
where to tweak the code? .... i want to be able to login with php to pull all images into my php script.
thank you,
polly
Offline
Polly wrote:
hey ....
where to tweak the code? .... i want to be able to login with php to pull all images into my php script.
thank you,
polly
Hi. In your local configuration (local/config/config.inc.php) you can add a new entry :
$conf['session_use_ip_address'] = false;
Offline
hey .....
it didn't work for me :-(
opened a new topic: http://piwigo.org/forum/viewtopic.php?p … 04#p142004
thanks!
Offline