How to create Login and Logout status

Posted on 2011-05-09
Last Modified: 2012-05-11

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
Question by:jeffreyjseaman
    LVL 18

    Expert Comment

    You are using asp:Login control?
    LVL 11

    Accepted Solution


    I think following link will be helpful for you

    - Deepak Lakkad

    Author Comment

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now