Last post Aug 09, 2008 10:28 PM by vnchopra
Aug 08, 2008 12:42 AM|vnchopra|LINK
This is indeed a problem that needs to be resolved. Is there any C# code that does this?
Aug 08, 2008 04:23 AM|jeremyh|LINK
To disable anonymousIdentification or to clean the table of unwanted users take a read of
Hope it helps
Aug 08, 2008 04:24 AM|vnchopra|LINK
lol i have seen that one already.
Aug 08, 2008 04:30 AM|jeremyh|LINK
Ok so does this solve your problem or did your question mean something else?
Aug 08, 2008 01:37 PM|vnchopra|LINK
The code written on Omar's blog is written in VB, I was looking for on in C#. Either way, if i convert that code to C#, where would it have to be placed?
Aug 08, 2008 01:42 PM|jeremyh|LINK
Omar post is a Tsql script, so save a copy and then create a new query in vs or sql management studio and paste the sql script in and run it.
Hope it helps
Aug 08, 2008 02:00 PM|Lee Dumond|LINK
The code example language doesn't matter, as you have to do this as a T-SQL query.
If you are using anonymous profiles and need to do this frequently, you might consider encapsulating the logic in a stored procedure. Then, you could call it from your code by opening a connection and supplying the parameters.
Even cooler -- you could do this in an enumerated LINQ query, if you're into that sort of thing.
Aug 08, 2008 02:51 PM|vnchopra|LINK
hmm, i do not know how to use LINQ yet.
Aug 08, 2008 03:07 PM|Lee Dumond|LINK
LINQ is not involved here, just speculating on a way it could be automated. But again, you can do this manually in SQL Server Management Studio, as Jeremy pointed out.
Once you do this, if you do not require anonymous profiles, you should disable them. (In the BeerHouse, they are only required for the ShoppingCart and the ThemeSelector.)
Aug 08, 2008 06:41 PM|vnchopra|LINK
ok so if i disable this, would i have to delete the files which calls on the themeselector as well as the shopping cart?
Aug 09, 2008 12:36 AM|Lee Dumond|LINK
No. You can just disable it in web.config.
Aug 09, 2008 08:46 PM|vnchopra|LINK
Aug 09, 2008 08:50 PM|Lee Dumond|LINK
Sure you could just delete that module, along with any references to the Store object model in the UI.
Aug 09, 2008 10:28 PM|vnchopra|LINK
ok i ll try that.