简体   繁体   中英

How to differentiate Joomla guest users

I am developing a site in Joomla .
I want to assign an unique status or id to guest user .This is needed to differentiate one guest user from other so that I can send the respective download link (after taking some inputs which may not be unique) to the respective guest user .

But Joomla gives user_id = 0 to every guest user .

I am using Sourcerer extension for embedding php .

Any idea for that !!!!!!!

J., You can use Joomla's session table. Joomla stores unique session_id for the each user even if for the guest. You just have to check guest =0 which means you will get session id of guest users only.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM