I have a link whose target i need to change depending on whether a user is logged in or not. If a user is logged in I direct him to a different page and If he is not I intend to show a dialog box that asks the user to log in before he can view the content..its a polite error message.
I would really appreciate if you people could tell me how do I go about it. If i can use a session-flash. I would want to use a dialog using some javascript though.