V's suggestion is great for when you want to display a website immediately the page is loaded as well as removing the need for the user to EVER see/use the Aware User login screen, and using Guest user, and instead having a custom login panel/popup and procedure integrated in the actual application UI.
say, a consumer facing public website accessible by customers and non-customers, but which needs to have functionality which allows customers to 'login' and everything ordinarily associated with it.
If an interaction or activity/event occurs that requires updating data to be thereafter associated with a Customer, then the following rule is run first, before whatever customer related updating related rules/actions/sub-processes are necessary to effect the updating of relevant data:
This assumes a, LoginNotification\When login notification is received, rule created an instance of an object called 'ApplicationSession'.
rule1Find_ApplicationSession
FIND ApplicationSession WHERE ApplicationSession.aID=Session_ID()
rule2ValidateFound
IF: SEARCH_COUNT<>1
THEN: REPORT ERROR 'APPLICATION ERROR: '+SEARCH_COUNT+' Application Sessions with this Session`s ID exist. Inform System Admin immediately.'
<other rules/sub-processes as required>
An example 'LoginNotification\When login notification is received' rule might be:
rule1Create_ApplicationSession
If LoginNotification.IsGuest='No' Then
CREATE ApplicationSession
ApplicationSession.aID=Session_ID()
ApplicationSession.bLoginTimestamp=CURRENT_TIMESTAMP
ApplicationSession.cUserLoginName=LoggedInRegularUser.LoginName
ApplicationSession.gRemoteAddress=LoginNotification.RemoteAddress
ApplicationSession.hReferringURL=LoginNotification.ReferringURL
LoggedInRegularUser.yaLastSession=ApplicationSession
INSERT ApplicationSession IN LoggedInRegularUser.zzSessions
Else
CREATE ApplicationSession
ApplicationSession.aID=Session_ID()
ApplicationSession.bLoginTimestamp=CURRENT_TIMESTAMP
ApplicationSession.gRemoteAddress=LoginNotification.RemoteAddress
ApplicationSession.hReferringURL=LoginNotification.ReferringURL