Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > creating one time access to a microsite View modes: 
User avatar
Member
Member
byron-lqd - 6/21/2010 8:52:51 AM
   
creating one time access to a microsite
We've got a client request to create a site that a user can only access once. This'd be a micro-site on the same domain but a distinct 3rd. level (training.domain.ca)

I realize it sounds a little odd, but one attempts to listen to clients and there seems to be some legal reason for this use case.

Is it possible to create/manage single use users in a site? I realize we could extend the user controls etc. and either mark the account 'inactive' etc on login. (which may be the way to go)

Anyone had to do this? (or wanted to)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/23/2010 4:17:19 AM
   
RE:creating one time access to a microsite
Hi,

There are several options:

1) There is a Created date column for the user - so you can check this value and e.g. if it is older than one day, hour or whatever, you will disable this user (UserEnabled set to false) or delete this account.

2) You can handle the click event on the sign out button - if the user clicks on it, you will disable that user

3) In global.asax.cs file there is Session_End event, so here you can check which session for which user ended, and disable the user.

Best regards,
Juraj Ondrus