R
rhynos77
Hi there
I've set up password protected .asp pages in my FP2003 web following
instructions in article 825498.
I'd like users to be able to log out. However, I want a hyperlink to appear
only when the user is logged in.
As per article 825498 a small piece of script is inserted on all password
protected .asp pages to show a message that either says 'You are not logged
in' or their username if they are logged in.
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>" & Session("UID") & "</b>"
End If
%>
Is there some way of modifying this 'Else' statement to include a link to
logout? Eg. when the user is logged in it says "You are logged in as
rhynos77. Click here to log out?
I'm a novice so I hope this makes sense.
Ryan
I've set up password protected .asp pages in my FP2003 web following
instructions in article 825498.
I'd like users to be able to log out. However, I want a hyperlink to appear
only when the user is logged in.
As per article 825498 a small piece of script is inserted on all password
protected .asp pages to show a message that either says 'You are not logged
in' or their username if they are logged in.
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>" & Session("UID") & "</b>"
End If
%>
Is there some way of modifying this 'Else' statement to include a link to
logout? Eg. when the user is logged in it says "You are logged in as
rhynos77. Click here to log out?
I'm a novice so I hope this makes sense.
Ryan