Click here to Skip to main content
16,004,890 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access is denied. [modified] Pin
I'm a beginner2-Nov-09 23:33
I'm a beginner2-Nov-09 23:33 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:43
sashidhar2-Nov-09 23:43 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 23:50
I'm a beginner2-Nov-09 23:50 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 23:59
sashidhar2-Nov-09 23:59 
GeneralRe: Access is denied. Pin
I'm a beginner3-Nov-09 0:22
I'm a beginner3-Nov-09 0:22 
GeneralRe: Access is denied. Pin
sashidhar3-Nov-09 0:45
sashidhar3-Nov-09 0:45 
Questionuser session management issue Pin
Amit Agarrwal2-Nov-09 17:35
Amit Agarrwal2-Nov-09 17:35 
AnswerRe: user session management issue Pin
N a v a n e e t h2-Nov-09 17:46
N a v a n e e t h2-Nov-09 17:46 
This is most frequently asked question. There is a search box on the right top corner. You will find plenty of answers if you use that.

To answer the question, you need keep a flag in the database which will be set when user logs in and unset when logs out. When a user logs in, check the status of this flag and if it is set, say that user has logged already. This method is not fully foolproof. A common problem of this approach is your flag will not reset if user closes the browser without logging out.

Hooking JS method on window close and doing AJAX request to reset the flag is one possible option. But since JS can be turned off at the client side, this method is not reliable. A better approach is to record the last activity time of the user and a database job resets the flag if current time - last activity time is greater than session expiry limit.

A combination of all these methods will work well.

Best wishes,
Navaneeth

GeneralRe: user session management issue Pin
Amit Agarrwal2-Nov-09 17:58
Amit Agarrwal2-Nov-09 17:58 
GeneralRe: user session management issue Pin
_Damian S_2-Nov-09 18:13
professional_Damian S_2-Nov-09 18:13 
GeneralRe: user session management issue Pin
N a v a n e e t h2-Nov-09 20:05
N a v a n e e t h2-Nov-09 20:05 
QuestionValidating a filename starting with numbers Pin
meeram3952-Nov-09 17:26
meeram3952-Nov-09 17:26 
AnswerRe: Validating a filename starting with numbers Pin
Christian Graus2-Nov-09 18:22
protectorChristian Graus2-Nov-09 18:22 
AnswerRe: Validating a filename starting with numbers Pin
N a v a n e e t h2-Nov-09 20:06
N a v a n e e t h2-Nov-09 20:06 
QuestionHow can I use a static class that is placed in another folder Pin
fiaolle2-Nov-09 13:25
fiaolle2-Nov-09 13:25 
AnswerRe: How can I use a static class that is placed in another folder Pin
Christian Graus2-Nov-09 13:44
protectorChristian Graus2-Nov-09 13:44 
GeneralRe: How can I use a static class that is placed in another folder Pin
fiaolle3-Nov-09 8:44
fiaolle3-Nov-09 8:44 
AnswerRe: How can I use a static class that is placed in another folder Pin
fiaolle2-Nov-09 20:26
fiaolle2-Nov-09 20:26 
GeneralRe: How can I use a static class that is placed in another folder Pin
fiaolle2-Nov-09 20:41
fiaolle2-Nov-09 20:41 
GeneralRe: How can I use a static class that is placed in another folder Pin
Christian Graus3-Nov-09 8:40
protectorChristian Graus3-Nov-09 8:40 
QuestionWeb Service Reference in Asp.net (WSE 2.0) Pin
mark_me2-Nov-09 8:44
mark_me2-Nov-09 8:44 
AnswerRe: Web Service Reference in Asp.net (WSE 2.0) Pin
Abhishek Sur2-Nov-09 9:32
professionalAbhishek Sur2-Nov-09 9:32 
GeneralRe: Web Service Reference in Asp.net (WSE 2.0) Pin
mark_me2-Nov-09 10:04
mark_me2-Nov-09 10:04 
GeneralRe: Web Service Reference in Asp.net (WSE 2.0) Pin
Abhishek Sur2-Nov-09 10:24
professionalAbhishek Sur2-Nov-09 10:24 
GeneralRe: Web Service Reference in Asp.net (WSE 2.0) Pin
mark_me2-Nov-09 12:02
mark_me2-Nov-09 12:02 

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.