$_SESSION data?
McMurryIAS
Joined: 2009-12-01
Posts: 63 |
Posted: Tue, 2009-12-08 20:41 |
I am trying to examine the $_SESSION array in RestrictKeywordsOption.inc, as I wish to modify that file to send an email list of files which failed to upload due to $forceKeywords being true and $keywords being empty. The reason for examining the $_SESSION array is that I assume it contains info about the person who is attempting the upload, such as name, email, etc. However when I print_r( $_SESSION ) it is empty. 1) If $_SESSION is the appropriate place to check, how do I access it within the Gallery paradigm? 2) If $_SESSION is not the place to check, what object/method/other place should I access/check for that type of data? Gallery System Info |
|
Posts: 63
p.s. - Also access the album info from that file. (To indicate where the uploads were attempted to ...)
-----
http://www.mcmurry.com
Posts: 4342
G2 doesn't use php session handling at all, excepting the initial install process.
You can use things like $gallery->getActiveUser() to find out who the current user is
http://gallery.menalto.com/apidoc/GalleryCore/Classes/Gallery.html#methodgetActiveUser
obviously if they're the anonymous user (guest) then you won't have an email on record.
Posts: 63
grazie!
-----
http://www.mcmurry.com