c# - how to log out a user after 15 minutes? -
using mvc orchard 1.7 security/test purpose have set system log out user after 1 min in webcofig file:
<authentication mode="forms"> <forms loginurl="~/users/account/accessdenied" timeout="1"/> </authentication> this not seem work, after few mins if start navigating through end of site, works fine. isnt meant log me out after 1 m? means cant view end.
i have used [authorize] attribute above functions in project. however, doesnt appear much, suggested deleting mappings.bin file in 'sites' folder.
all want do, logout user after 15 mins, if user tries re-fresh or go after 15m, navigated login page. ideas on doing wrong
if in orchard.framework -> security -> providers -> formsauthenticationservice, can change how long user signed in in signin method. should overwrite service own if don't want edit core.
Comments
Post a Comment