I have a site that is being expanded to include a 'secure area' which will require a login process to access. The site, like many others no doubt, is a combination of ASP & straight HTML pages.
I have no problem with the login process which is consigned to a single ASP page but am having problems getting my head around the logout capability. Once logged in, the visitor can browse pages in both the 'secure area' and other pages in the site. In theory I need to provide them with a means of logging out from any page in the site. I could put a 'logout' link in the menu (server side include) and I would have what I need everywhere but, ideally, this link would only be available conditionally - i.e. if the visitor was, in fact, logged in. Is there any way I can achieve this without 'converting' all HTML pages to ASP or is my only other 'easy' solution to include the link unconditionally that calls an ASP logout page that then ignores the request if the user is already logged in?
I'm just concerened I'm missing something really obvious!
Thanks in advance.
I have no problem with the login process which is consigned to a single ASP page but am having problems getting my head around the logout capability. Once logged in, the visitor can browse pages in both the 'secure area' and other pages in the site. In theory I need to provide them with a means of logging out from any page in the site. I could put a 'logout' link in the menu (server side include) and I would have what I need everywhere but, ideally, this link would only be available conditionally - i.e. if the visitor was, in fact, logged in. Is there any way I can achieve this without 'converting' all HTML pages to ASP or is my only other 'easy' solution to include the link unconditionally that calls an ASP logout page that then ignores the request if the user is already logged in?
I'm just concerened I'm missing something really obvious!
Thanks in advance.