If user logged in statement?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default If user logged in statement?

    I have a member site and only want the sign in to show if the user is not
    already signed in and the log out to show only if the user is logged in. Can i
    do this? I know i can for datasets, whether they are empty or full, or if it is
    the last of first page but is there a tag for if the user is logged? I am
    guessing that there is since there are a lot of sites that do what i am trying
    to do. Thanks for the help!

    barbedwire103 Guest

  2. Similar Questions and Discussions

    1. I want asp.net to act as a different user than the one that is currently logged on IS THIS POSSIBLE!!!
      Hi James, were you able to resolve your problem? I'd be interested to know how you achieved this. Basically I have the same set up as you. I want...
    2. Check if user is already logged in
      Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use...
    3. Recognise a logged in user
      Hi How do I recognise a logged in user on a Windows network. The clients are running XP/IE6. Server is NT Server 2000 / IIS. The Situation...
    4. Logged in user?
      I need some asp code that can give me the user that is logged on to the PC, can anyone help? Regards Betina
    5. Identify logged on user
      I want to identify the user name of the person logged onto the computer and display this name on an Access form. Can anyone show me how to do this?
  3. #2

    Default Re: If user logged in statement?

    If you are using the inbuilt Login behaviour you can simply check if the
    Session MM_Username is true and if so, not show the link.

    <%If Session("MM_Username") = "" Then%>
    Login
    <%End If%>

    Originally posted by: barbedwire103
    I have a member site and only want the sign in to show if the user is not
    already signed in and the log out to show only if the user is logged in. Can i
    do this? I know i can for datasets, whether they are empty or full, or if it is
    the last of first page but is there a tag for if the user is logged? I am
    guessing that there is since there are a lot of sites that do what i am trying
    to do. Thanks for the help!



    CarlGrint Guest

  4. #3

    Default Re: If user logged in statement?

    Am i supposed to put a <?php tag around it? I have copied and pasted your code
    to where i need it. I put the true statement inbetween the quotes. For some
    reason, its still not working. I looked at my other if statements, the ones
    that DW made, and they all are with in php tags. Are these supposed to be too?
    If so, could you add them to your previous code, so i coudl see? Thank you so
    much for your help!

    barbedwire103 Guest

  5. #4

    Default Re: If user logged in statement?

    Mine was ASP coding, you will need to change it to PHP code and the correct
    session name the PHP version creates.

    Originally posted by: barbedwire103
    Am i supposed to put a <?php tag around it? I have copied and pasted your code
    to where i need it. I put the true statement inbetween the quotes. For some
    reason, its still not working. I looked at my other if statements, the ones
    that DW made, and they all are with in php tags. Are these supposed to be too?
    If so, could you add them to your previous code, so i coudl see? Thank you so
    much for your help!



    CarlGrint Guest

  6. #5

    Default If user logged in statement?

    I have a member site and only want the sign in to show if the user is not
    already signed in and the log out to show only if the user is logged in. Can i
    do this? I know i can for datasets, whether they are empty or full, or if it is
    the last of first page but is there a tag for if the user is logged? I am
    guessing that there is since there are a lot of sites that do what i am trying
    to do. I need this for the php language. Thanks for the help!

    barbedwire103 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139