角色和成员 [英] Roles and Membership

查看:82
本文介绍了角色和成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我想用自己的数据库表在sql server中创建角色和成员身份.我想创建自己的登录名,创建用户.在asp.net
我想使用不使用cookiee的身份验证和授权

sir i want to create database tables with my own,in sql server for roles and membership.I want to create my own login, create user. in asp.net
I want to use Authentication and Authorization without cookiee

推荐答案

信息已保存在SQL数据库中(在您选择的选项中),并且所有代码已经存在成员资格.如果希望与默认设置有所不同,只需修改您想要更改的内容即可.

据我所知,已经可以指定将视图状态存储在查询字符串中,这样就可以消除Cookie.

但实际上,我认为这样做的安全性较低,因为复制和粘贴网址比Cookie信息容易.因此,您通常必须以某种方式确保正确处理这些情况.
The information is already saved in a SQL database (in you select that option) and all the code is already there for membership. Just modify the things you like to change if you want it to be somewhat different than the default.

As far as I remember, it is already possible to specify to store the view state in the query string thus you can eliminate cookies if you want.

But in pratice, I think it is less secure to do it that way as it is easier to copy and paste a web address than cookie information. So you would typically have to somehow ensure that you properly handle those cases.


就像重新发明轮子一样?

读这堆书,有很多东西(18个部分)

检查ASP.NET的成员资格,角色和配置文件 [
Like reinvent the wheel?

Read this bunch, it has many things(18 parts)

Examining ASP.NET''s Membership, Roles, and Profile[^]


这篇关于角色和成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆