Under 3.0.1b7 we used this code to logout of a web application.
<%
`file: /iopr/auth/logout.a4d
import ("sessauth")
import ("iopr")
import("a4d.web")
import("a4d.web.plus")
import("a4d.utils")
abandon session
abandon response cookie ("IOPR_SID")
abandon response cookie ("IOPR_UID")
redirect ("/iopr/auth/login.a4d")
%>
After upgrading to 4.0.2, when I try to logout I get a Browser
error like:
"Your browser could not fulfill a redirect request. Please click
here <http://128.165.208.5/iopr/auth/login.a4d> to go the intended
destination."
FYI, I'm not sure why you are importing so many libraries when you
aren't actually calling any library methods.
If you are checking an item in the session to see if it exists in
order to determine if the session is alive, it isn't enough to use
'abandon session', you have to call 'delete session item("@")' as
well, because the session is not actually deleted until some unknown
time later.
I recommend using tcpflow or some other packet watcher to see exactly
what traffic is going between the server and the browser. The browser
is not happy with something it is getting from the server.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/