Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Unique and Random number in Webapplication environment
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
khurram
18y
2.1k
1
Reply
HI i am working on an application in which i need to give fictitious names to the clients connected to a particular session of auctions. The names can repeat for the next session and different clients can get different fictitious names even if they were being repeated in the first session.
The names can be forexample
client1
client2 etc
if the identity colunm of sqlserver is used it will keep on incerementing the numbers and in a month or so the clients will be getting names like client333333 client33333333333333 etc. So what is required is some suitable name which can be repeated in different sessions but must be unique in one session. C# Random class does not guarantee the uniqueness(if i am right) especially in the web environment where everything is created and destroyed on the fly.
Any idea from anyone would be of great help.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Sending the value of one variable from one form to another
Passing long from ASP to C# method