Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Persist
I'm thinking if we persist the user ID of a registered user on a website, we won't need anything else to make further queries. We could use that ID to manipulate any other data in the database that is related to the user.
Posted 26-Nov-12 13:23pm
Edited 26-Nov-12 13:25pm
v2
Comments
Sergey Alexandrovich Kryukov at 26-Nov-12 20:34pm
   
Not clear. What is "enough"? If you mean that the user profile and data associated with it is found by the ID of authenticated user, this is what always done. So, what's the idea?
--SA
FourCrate at 27-Nov-12 16:09pm
   
Ok, and which state management should I use for something such as a user ID?
FourCrate at 27-Nov-12 16:10pm
   
You understood me correct by the way :)
VishwaKL at 6-Dec-12 22:16pm
   
I think if the user id is email id its better,
FourCrate at 8-Dec-12 7:52am
   
Why do you think that VishwaKL?
VishwaKL at 10-Dec-12 0:31am
   
Email id is unique identification that why
FourCrate at 22-Dec-12 12:13pm
   
ok but so can user id be (a unique integer)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 235
1 Sergey Alexandrovich Kryukov 120
2 Richard MacCutchan 100
3 ChauhanAjay 95
4 BotCar 95
0 Sergey Alexandrovich Kryukov 9,056
1 OriginalGriff 8,041
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100