dcsimg
How to make "/User" point to two different html pages (Login and Logout)
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sagar_Mitra
Posted On:   Sunday, November 9, 2008 01:58 AM

I'm using a simple Template engine. I have a simple Login Logout application. i'm trying to load the Login and Logout pages thru the template engine The problem is that one of the requirements is that , whenever the Login Page is first called, "User" should be in the url and not Login. Also after logging in, if the person types "/User" in the url, then it should redirect to the Logout page this time. What I cant figure out is , how to call both the pages in the template , using the same "/User" keyword I tried using "replaceAll" but no use    More>>

I'm using a simple Template engine.
I have a simple Login Logout application. i'm trying
to load the Login and Logout pages thru the template engine


The problem is that one of the requirements is that ,
whenever the Login Page is first called, "User" should be
in the url and not Login.



Also after logging in, if the person types "/User"
in the url, then it should redirect to the Logout page this
time.



What I cant figure out is , how to call both the pages in the template , using the same "/User" keyword


I tried using "replaceAll" but no use



Please suggest

   <<Less
About | Sitemap | Contact