Click here to Skip to main content
Rate this: bad
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 14:23pm
Edited 26-Nov-12 14:25pm
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?
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 476
1 Sergey Alexandrovich Kryukov 215
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,061
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2015
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