Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I want to display the name of the user after he/she logout like below
Thank you mr. UserName for visiting us.

I have written code like this in login form load.
VB
If Session("LogoutStatus") = "Logout" Then
           WebMsgBox.WebMsgBox.Show("Thank You Mr " & Trim([Global].LogOnName) & " For Visiting Alumni Group ")

           ' Response.Redirect("login.aspx")
       Else : Session("LogoutStatus") = "Login"
           'Else
           'Response.Redirect("login.aspx")
       End If

But when I again click for my login page, it is showing last username msg only.

Please help me.

Thanks in advance.
Posted
v3

1 solution

Use login user name in session and use this value after logout, reintialize this value when other user will login.

Thanks,
Ambesha
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900