c# - Javascript client & asp.net server user authentification via session -


i have javascript client , asp.net server. using simplemembership provider style authentification, login/register , roles working fine. problem is, once user logs in, have able check future server controller hits , determine whether permit or deny user use controller functions. first thought using sessions, once user logs in have created session store username (or id or whatever), , use later check whether role has sufficient rights. problem occurs when log in function hit, session created , credentials stored, function ends session ends (which means can't check future controller hits). question is, there way makes work way (lets somehow forcing session stay open until logout or timeout), or going wrong?

thank in advance, , hope isn't 1 of "stupid" questions!


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -