Click here to Skip to main content
15,918,031 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem accessing a folder Pin
Yusuf2-May-09 1:18
Yusuf2-May-09 1:18 
GeneralRe: Problem accessing a folder Pin
Ramesh Swaminathan2-May-09 1:41
Ramesh Swaminathan2-May-09 1:41 
QuestionHTTP_REFERER question Pin
john_paul1-May-09 7:51
john_paul1-May-09 7:51 
QuestionRe: HTTP_REFERER question Pin
led mike1-May-09 8:36
led mike1-May-09 8:36 
AnswerRe: HTTP_REFERER question Pin
Vega021-May-09 15:45
Vega021-May-09 15:45 
QuestionDatalist: Display page Pin
sameercodes1-May-09 5:28
sameercodes1-May-09 5:28 
QuestionGet Logged in Count Pin
Saamir1-May-09 5:17
Saamir1-May-09 5:17 
AnswerRe: Get Logged in Count Pin
Yusuf1-May-09 5:24
Yusuf1-May-09 5:24 
Saamir wrote:
I have created a login page where I want only 1 user logged in at any period


what do you meant only 1 use logged in at any time? I hope you not restricting Only ONE user to connect to your application at a time. If that is what you want, you are in the wrong place. Web app are meant to be used by multiple users at a time.

If you want to limit to a single login to each user, then you need to track who is logged in. When a user logs in then flag that in your users table. Then when the user logs out, remove the flag. Then you need to handle end of session event and remove the flag for that user. When you notice a user tries to log in multiple times, then you can redirect them to different page (may be user already logged in message)


GeneralRe: Get Logged in Count Pin
Saamir1-May-09 5:31
Saamir1-May-09 5:31 
GeneralRe: Get Logged in Count Pin
Yusuf1-May-09 5:32
Yusuf1-May-09 5:32 
GeneralRe: Get Logged in Count Pin
Saamir1-May-09 5:36
Saamir1-May-09 5:36 
GeneralRe: Get Logged in Count Pin
Yusuf1-May-09 5:53
Yusuf1-May-09 5:53 
GeneralRe: Get Logged in Count Pin
Saamir1-May-09 5:59
Saamir1-May-09 5:59 
GeneralRe: Get Logged in Count Pin
Yusuf1-May-09 6:27
Yusuf1-May-09 6:27 
Questionxml Pin
AndyInUK1-May-09 3:48
AndyInUK1-May-09 3:48 
AnswerRe: xml Pin
MidwestLimey1-May-09 3:59
professionalMidwestLimey1-May-09 3:59 
GeneralRe: xml Pin
AndyInUK1-May-09 4:04
AndyInUK1-May-09 4:04 
GeneralRe: xml Pin
MidwestLimey1-May-09 4:40
professionalMidwestLimey1-May-09 4:40 
GeneralRe: xml Pin
AndyInUK1-May-09 4:49
AndyInUK1-May-09 4:49 
AnswerRe: xml Pin
led mike1-May-09 4:36
led mike1-May-09 4:36 
GeneralRe: xml Pin
AndyInUK1-May-09 4:45
AndyInUK1-May-09 4:45 
GeneralRe: xml Pin
MidwestLimey1-May-09 4:49
professionalMidwestLimey1-May-09 4:49 
AnswerXmlTextWriter Pin
David Mujica1-May-09 5:48
David Mujica1-May-09 5:48 
QuestionGridview setting column widths Pin
dptalt1-May-09 3:41
dptalt1-May-09 3:41 
AnswerRe: Gridview setting column widths Pin
MidwestLimey1-May-09 4:58
professionalMidwestLimey1-May-09 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.