Click here to Skip to main content
15,904,655 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: session Pin
nagendrathecoder4-Jan-10 20:03
nagendrathecoder4-Jan-10 20:03 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:04
baselanfouqa4-Jan-10 20:04 
GeneralRe: session Pin
Abhijit Jana4-Jan-10 20:10
professionalAbhijit Jana4-Jan-10 20:10 
GeneralRe: session Pin
nagendrathecoder4-Jan-10 20:11
nagendrathecoder4-Jan-10 20:11 
AnswerRe: session Pin
Abhijit Jana4-Jan-10 20:09
professionalAbhijit Jana4-Jan-10 20:09 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:15
baselanfouqa4-Jan-10 20:15 
GeneralRe: session Pin
nagendrathecoder4-Jan-10 20:18
nagendrathecoder4-Jan-10 20:18 
AnswerRe: session Pin
Dinesh Mani4-Jan-10 20:09
Dinesh Mani4-Jan-10 20:09 
Let me first understand the problem here -

First, you had not validated the session on the main page hence when you entered the URL the main page was displayed.
So, you validated the session variable and redirected the user to Login page.
Now on the login page only after you sign-in you are able to go to the main page.
Now you wish to log-out the user for which you use session["UserName"] = null; but the main page still goes thro'.

Am I correct?

The problem here is that you should not use session["UserName"] = null; to remove the session variable. You should use Session.Remove("UserName");

HTH!
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:19
baselanfouqa4-Jan-10 20:19 
GeneralRe: session Pin
Dinesh Mani4-Jan-10 20:23
Dinesh Mani4-Jan-10 20:23 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:32
baselanfouqa4-Jan-10 20:32 
GeneralRe: session Pin
Dinesh Mani4-Jan-10 20:42
Dinesh Mani4-Jan-10 20:42 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:58
baselanfouqa4-Jan-10 20:58 
GeneralRe: session Pin
Abhishek Sur4-Jan-10 21:01
professionalAbhishek Sur4-Jan-10 21:01 
Questionassign syle to the row at runtime Pin
yesu prakash4-Jan-10 19:13
yesu prakash4-Jan-10 19:13 
AnswerRe: assign syle to the row at runtime [modified] Pin
Pranay Rana4-Jan-10 19:43
professionalPranay Rana4-Jan-10 19:43 
AnswerRe: assign syle to the row at runtime Pin
Abhijit Jana4-Jan-10 19:52
professionalAbhijit Jana4-Jan-10 19:52 
AnswerRe: assign syle to the row at runtime Pin
carlecomm5-Jan-10 21:36
carlecomm5-Jan-10 21:36 
Questionproblem while taking a project from vss Pin
sanjubaba4-Jan-10 19:00
sanjubaba4-Jan-10 19:00 
AnswerRe: problem while taking a project from vss Pin
Pranay Rana4-Jan-10 19:54
professionalPranay Rana4-Jan-10 19:54 
GeneralRe: problem while taking a project from vss Pin
sanjubaba4-Jan-10 20:16
sanjubaba4-Jan-10 20:16 
AnswerRe: problem while taking a project from vss Pin
ncsubbu9-Jan-10 1:36
professionalncsubbu9-Jan-10 1:36 
QuestionHow to Use Multiple site maps Pin
ptr_Electron4-Jan-10 18:57
ptr_Electron4-Jan-10 18:57 
QuestionHow to resolve quot xml parsing issue by using C# .net Pin
sharmin20094-Jan-10 18:27
sharmin20094-Jan-10 18:27 
AnswerRe: How to resolve quot xml parsing issue by using C# .net Pin
Pranay Rana4-Jan-10 19:39
professionalPranay Rana4-Jan-10 19:39 

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.