Need help with this, it basic I know 8(.

Results 1 to 2 of 2

Thread: Need help with this, it basic I know 8(.

  1. #1
    Join Date
    Dec 1969

    Default Need help with this, it basic I know 8(.

    Hi <BR><BR>I have created a login page(with a little help) that creates a session variable called username when the user is logged in.<BR><BR>I want to be able to check that session variable to see if it has a value and if it has display a logout text link and if not display a login text link.<BR><BR>Now I know its a basic if then statement, I&#039;m just struggling with the correct syntax.<BR><BR>Can anybody help?<BR><BR><BR>TIA <BR><BR>LH

  2. #2
    Join Date
    Dec 1969

    Default You really need to start with..

    .. ASP for Dummies.<BR><BR>If Len(Trim(Session("theVar") & "")) &#062; 0 Then<BR> Response.Write "&#060;a href=""logout.asp""&#062;Logout&#060;/a&#062;"<BR>End If<BR><BR>And logout.asp just contains:<BR>&#060;%<BR>Session.Abandon<BR>%&#062; <BR>You&#039;ve been logged out. Try Satanism.<BR><BR>-Doug

Posting Permissions

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