How to create Login and Logout status


I setup my own login on page that relies on SQL Database. I'm using Session Variable to detect the username. I want to have a caption id at top that is login and logout when the user logs in. Have this on a site.master page.

How can I do this? Thanks
Who is Participating?
Deepak LakkadCommented:

I think following link will be helpful for you

- Deepak Lakkad
You are using asp:Login control?
jeffreyjseamanAuthor Commented:
Yes I am using the control but I'm not using Microsofts membership. I wrote my own login code. I want to use session("variable") if = username then display logout else have it display login.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.