Skip to content
Back

How to Store Guest User Information Without Using createAnonymousSession?

  • 0
  • Functions
  • Web
Osmanlı
26 Feb, 2025, 14:24

I want to store the following information for a guest user who accessed the site:

"ip": "127.0.0.1", "osCode": "Mac", "osName": "Mac", "osVersion": "Mac", "clientType": "browser", "clientCode": "CM", "clientName": "Chrome Mobile iOS", "clientVersion": "84.0", "clientEngine": "WebKit", "clientEngineVersion": "605.1.15", "deviceName": "smartphone", "deviceBrand": "Google", "deviceModel": "Nexus 5", "countryCode": "US", "countryName": "United States"

However, I am having trouble figuring out how to access this data. I don't want to use createAnonymousSession, as I haven’t found a better solution. I just want to briefly register the guest user's information. Can anyone suggest a better way to handle this?

TL;DR
If you want to store guest user information without using createAnonymousSession, you can consider implementing a simple system to store this data in a database or file when a guest user accesses the site. This way, you can retain and access the information without involving sessions.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more