Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# El Gringo 11/6/2006 9:21 AM
Hi,

please forgive me if this isn't the correct forum. I wasn't very shure where to put it to.
Now to my question:
Is there a way to access the loged-in user within the module class? Module class means the controller class derived from ModuleBase (e.g. ArticleModule, etc.).

thanks

eg
# martijnb 11/6/2006 4:10 PM
El GringoIs there a way to access the loged-in user within the module class? Module class means the controller class derived from ModuleBase (e.g. ArticleModule, etc.).

Yes, via HttpContext.Current.User or Thread.CurrentPrincipal.
# El Gringo 11/9/2006 6:22 AM
martijnb
El GringoIs there a way to access the loged-in user within the module class? Module class means the controller class derived from ModuleBase (e.g. ArticleModule, etc.).

Yes, via HttpContext.Current.User or Thread.CurrentPrincipal.

Thx, that was the solution.