[ic] Log out not working

Ed LaFrance interchange-users@lists.akopia.com
Tue May 22 11:32:01 2001


At 02:00 PM 05/21/2001 -0600, you wrote:
>Hello List,
>
>IC 4.6.5, RH 6.2, mySQL.
>
>When I login a user, then log out, It shows me logged out on the first
>screen I'm on, but when I navigate to any other screen, it shows me logged
>in again.
>
>This is my code.  I can't find any error log messages pertaining to this.
>
>[if !session logged_in]
><center><a href="[area login]"><font face="Arial" size="2"
>color="#FFFFCC">Login</font></a></center>
>[else]
><form action="[process]" method="post">
>[set Log Out]
>mv_todo=return
>mv_nextpage=index
>[userdb function=logout clear=1]
>[/set]
><font __FFACE__ size="1" color="#FFFFFF">
>Hello <b>[value fname] [value lname]</b>!<br>
>You are logged in as [data session username]</font>
><input type="hidden" name="mv_cookie_password" value="0">
><input type="submit" name="mv_click" value="Log Out">
></form>
>[/else]
>[/if]
>
>Does anyone know why this isn't working?  I can't find anything in the docs
>or on the list.
>
>Thanks,
>

It sure sounds like cookie login is enabled and logging you right back in 
with the next page load.  I see you have mv_cookie_password=0, but I don't 
know that this will clear an existing cookie.  You might want to try this 
on you logout form:

<input type=checkbox name=cookies_off value=1> Disable cookie login

...and then put this anywhere on the index page:

[if value cookies_off]
         [value name=cookies_off set='' hide=1]
         [set-cookie name=MV_USERNAME value=""]
         [set-cookie name=MV_PASSWORD value=""]
[/if]

Maybe that will work better for you.

- Ed L.




===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================