I made an asp-javascript website and I have a problem.
I made a menu when u can login and make some operation.
I need to disable the voice Login (is a link to an asp page) when the user is logged.
The word "login" is still visible but if u click on it there isn't any action.

It's possible to make this? and how can i do?
Thanks in advance for the answer.

When you login, create a session variable, eg.

Session("LoggedIn") = "True"

...then apply an IF statement around your Login link based on this variable, eg.

<% If Session("LoggedIn") <> "True" %>
<a href="login.asp">Login</a>
<% End If %>

Rob
<snipped>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.