CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 12/7/2005 10:31:52 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
wyx2000
Asp.Net User
Where does ASP.NET 2.0 insert a anonymous user? thanks12/7/2005 10:31:52 PM

0/0

After switched to RTM, I can not make anonymouseidentity works for me, it doesn't create any anonymous user in aspnet_users table, I am trying to figure out why. Could someone tell me how ASP.NET 2.0 create a anonymous user? where should I check?

I have the following settings in my web.config, I thought before it create the anonymous cookie, it will insert a record into aspnet_users  table, but it doesn't , and it doesn't report any error neither.

<anonymousIdentification enabled="true" cookieName=".LINKANONYMOUS"/>

<profile enabled="true">

<properties>

<add name="FirstName" type="System.String"/>

<add name="LastName" type="System.String" allowAnonymous="true"/>

<add name="UICulture" type="System.String" allowAnonymous="true"/>

<add name="Theme" type="System.String" allowAnonymous="true"/>

 

Laura
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/8/2005 5:21:05 PM

0/0

Your configuration file looks correct to me.

Please make sure that your request is really an Anonymous request (i.e. the Anonymous access is turned on in IIS and there are no authorization rules denying the anonymous access in the config file).

You can also check this by displayng the User.Identity.Name in your page.

If it's empty, then this is an anonymous request.

When you make an anonymous request, the server should issue the anonymous cookie with name=".LINKANONYMOUS".

This looks like this:

Set-Cookie: .LINKANONYMOUS=lZ20mKwyxgEkAAAANjBkN2M5YWYtZTVhMC00NDgyLTliOGMtZTBjNzg2YTQxZThl235215lj8fgQFVM4oqvY8VoOwu81; expires=Thu, 16-Feb-2006 03:53:50 GMT; path=/; HttpOnly

Also, there is a property on the Request object that you can use to retrieve the anonymous id: Request.AnonymousID.

This is a GUID (i.e. 60d7c9af-e5a0-4482-9b8c-e0c786a41e8e) and this is the kind of users you should see in the table for anonymous requests.

Hope this helps.

thanks,

laura


This posting is provided "AS IS" with no warranties, and confers no rights.
wyx2000
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/8/2005 8:17:41 PM

0/0

Hi, thanks for help.

The request is really an anonymouse request. I see LinkAnonymous in cookie, when I change the cookie name in web.config, I get new cookie, so that part works fine too.

and I get

User.Identity.Name :
Request.AnonymousID :d8435a8c-a5a1-41e8-939a-2b73ab12add5

so this works fine.

but I can not find any anonymous entry in aspnet_users table,  no user with that GUID neither.

Now, I am suspecting if it stores the user in the default db, I remember there was a access db for user security in beta version, in RTM, it is removed. I am just thinking hard, but I still don't have much idea about it.

Laura
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/8/2005 11:33:46 PM

0/0

Are you setting the Profile property in your page?


This posting is provided "AS IS" with no warranties, and confers no rights.
wyx2000
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/8/2005 11:41:49 PM

0/0

Yes, like this, it worked under beta 2

 

<membership defaultProvider="linkProvider">

<providers>

<clear/>

<add name="linkProvider" type="LinkLibrary.LinkSqlMembershipProvider" connectionStringName="dbsecurity" description="" requiresUniqueEmail="false" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" passwordFormat="Encrypted"/>

</providers>

</membership>

<profile enabled="true" defaultProvider="linkProvider">

<providers>

<clear/>

<add name="linkProvider" type="LinkLibrary.LinkSqlProfileProvider" connectionStringName="dbsecurity" description=""/>

</providers>

<properties>

<add name="FirstName" type="System.String"/>

<add name="LastName" type="System.String" allowAnonymous="true"/>

<add name="UICulture" type="System.String" allowAnonymous="true"/>

<add name="Theme" type="System.String" allowAnonymous="true"/>

<!--group name="Session">

<add name="State" type="System.Object"/>

</group-->

</properties>

</profile>

Laura
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/9/2005 3:32:36 PM

0/0

Sorry, I meant: do you have something like this in your aspx page?

Profile.FirstName="SomeName"

thanks,

laura

 


This posting is provided "AS IS" with no warranties, and confers no rights.
wyx2000
Asp.Net User
Re: Where does ASP.NET 2.0 insert a anonymous user? thanks12/9/2005 7:05:19 PM

0/0

Thank you very much!

I add that, and it works.

It sounds right, ASP doesn't need add the visitor record unless it need store something about it.

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Where does ASP.NET 2.0 insert a anonymous user? thanks - ASP.NET ... Where does ASP.NET 2.0 insert a anonymous user? thanks. Last post 12-09-2005 2: 05 PM by wyx2000. 6 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 4 ... Basically, he wrote an ASP.NET 2.0 server control that enables users to view and /or edit the Profile data. It does this using reflection at runtime to ...
ASP.NET 2.0 SQL Table Profile Provider Released Today - ScottGu's Blog Here are some past posts I've done about the ASP.NET 2.0 Profile system if you are ..... In the Create User Wizard, the Profile is as an anonymous user! ...
Cleanup inactive anonymous users from ASP.NET Membership Tables ... ASP.NET 2.0 Websites that allow anonymous visit and anonymous user profile have a .... Database backup size also reduces because the MDF size does not keep ...
SQL Server roles & ASP.NET 2.0 Forms Authentication Roles - SQL ... Thanks Kusuma Tag: SQL Server roles & ASP.NET 2.0 Forms Authentication Roles ... but this will grant access to anonymous web users to the database role. ...
Understanding Single Sign-On in ASP.NET 2.0: ASP Alliance Fortunately, in ASP .NET 2.0 you can achieve your goal of Cross Application .... which will be used to redirect an anonymous user to "Login.aspx" web page. ...
CodeProject: Client Callbacks in ASP.NET 2.0. Free source code and ... Sep 8, 2004 ... One of the new features in ASP.Net 2.0 is the ability to call server-side ... insert into Organization VALUES ('Agriculture and Agri-Food ...
Michael Morozov : ASP.NET 2.0 two-way binding and calculated fields Mar 6, 2006 ... The INSERT and UPDATE parameters will be populated from ... Bind() is the new feature in ASP.NET 2.0 which does the two-way data binding. ...
insert by login-user - ng.asp-net-forum.security - fix error ... insert by login-user, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net. security, Date: 12/27/2006 6:56:03 PM, Replies: 1, Views: 20, Subscribers: 0, ...
ASP.NET Forms Authentication, Part 2 | O'Reilly Media By default, anonymous users should be allowed to access your Web application. .... Can some give me an example of how in asp.net I can force a user who ...




Search This Site:










virtual directories vs. servers...

server2003/active directory/iis6 asp.net 2.0 windows authentication

help on treeview blowing up during post back

how to accomplish site-wide security without each page having to authenticate

how is the membership profile pages of this site made

looking for a menu control. need advice. thank you.

upload dotnetnuke to a live server

sub page_unload

file upload / download

using two ad sources for authentication

** database explorer ** please help ...

how do i create menu in asp.net 1.1

guestbook in asp.net web matrix starter kit

doesn't make sense - missing component

new dnn skin

image map creator

missing menu

schedule my aspx files

portal starter kit subtitle is incorrect

extending users with a one to many relationship

add_personal.sql where is the download

problem installing dotnetnuke dotnetnuke_3.0.13

some confusion with ddl's attribute

codesmith & dnn 2

users online

system.data.sqlclient

10d issue - new reg

datetime comparison

check if a user has changed the default layout

tab controls and scroll bars

 
All Times Are GMT