Introduction

Quick start

Requirements and Installation

Understanding SD application development

The development cycle

Application look and feel

Security

Monetizing

Notifications

Geolocation

Timezone

Cache Management

Extensibility

Troubleshooting

Online resources

 



Auto-register anonymous user - How to identify auto-registered users

Official Content
This documentation is valid for:

This is how we can tell if there is no session in the GeneXus Access Manager or if the session that exists is anonymous.
It is valid both for Auto-Register Anonymous Users and for knowing if the session is anonymous in web applications (Anonymous Sessions in GAM - Web Applications).

&GAMSession = GAMSession.Get(&GAMErrors) //&GAMErrors is a GAMError collection data type, &GAMSession type is GAMSession
If &GAMSession.IsAnonymous
       //Anonymous user
Else
       //Registered user
Endif

This is how we can find out if the SD application has an auto-registered user:

If &GAMUser.IsAutoRegisteredUser
       //Anonymous user
Else
       //Registered user
Endif

See also

Auto-register anonymous user - SD usage example






Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.